Binod's Blog

Defining class in PHP

by 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.

:

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...