Answers for "object initialization"

PHP
0

object initialization

<?php
class foo
{
    function do_foo()
    {
        echo "Doing foo."; 
    }
}

$bar = new foo;
$bar->do_foo();
?>
Posted by: Guest on May-28-2021

Browse Popular Code Answers by Language