Defining class in PHP
by Binod on Sep.19, 2011, under PHP, Technology, Web Designing
This is a simple Example of Defining a class in PHP.
<?php
class test
{
function do_test()
{
echo “Testing class function.”;
}
}$test_object = new test;
$test_object->do_test();
?>
The Output will be
Testing class function.