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