- var_dump: documentation ( source)
<?php
class test{
function showMess()
{
echo 'this is a test';
}
}
$t = test; // no memory allocated for class
var_dump($t); // string test
$t = new test; // don't need () for class w/o parameter for instatiation
var_dump($t,$t->showMess); // need () to invoke method
var_dump($t->showMess()); // can't var_dump a method; null
var_dump('have a nice day'); // string