Profiler Code - TryPerson

Note:

Remember to delete the PHP tags that are inserted by default when creating a new PHP file before pasting in the code.

Copy this code into your editor to test the Profiler:

<?php

include_once 'Person.php';

$p1 = new Person("Joe","Bloggs",35,"male");

$p2 = new Person("Jane","Doe",24,"female");

$p3 = new Person("","",1,"xxx");

echo $p1->printData();

echo $p2->printData();

echo $p3->printData();

?>

Back To "Working with the Profiler"