Heya i've been trying to work out how a few new PHP tricks that i like are done so i've started building a little test script but i think i am going wrong somewhere in its implementation.
The script function is to get the value of the array passed to it by the class implementMethod and then just echo out if that is true or false.
If someone would be so kind to set me out on the right track please.
<?php
# Tells PHP to report all errors, not to be confused with displaying errors.
error_reporting(E_ALL);
# This one tells PHP to display errors.
ini_set('display_errors', 1);
namespace Cabbit;
class Validate
{
private static $validationFunctions = array(
'validates_presence_of'
);
}
class implementMethod extends Cabbit \\ Validate
{
static $validates_precense_of = array(
array("Title")
);
}