Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php object example

<?php
class Bike
{
    function model()
    {
        $model_name = 'cd100';
        echo "bike model:$model_name";
    }
}
$obj = new Bike();
$obj->model();
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #object
ADD COMMENT
Topic
Name
4+9 =