[PHP] OOP help!

Hello… I seem to be having some trouble on the basics of OOP in PHP, and for the life of me can’t get this to work:

c.php

<?PHP
    class repeat {
        function repeattwice($repeat) {
            echo $repeat;
            echo $repeat;
        }
    }
?>

runme.php

<?PHP

    include("c.php");
    $crepeat = new repeat;

    $crepeat->repeattwice("HELLO!");
    
?>

I don’t really see the problem with this… help is really welcomed here :expressionless:

Hi chunk

You need to include parentheses when you create an object

 $crepeat = new repeat();