Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

object initialization


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

$bar = new foo;
$bar->do_foo();
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #object #initialization
ADD COMMENT
Topic
Name
6+6 =