Dear PHP,
Is there documentation on how to add keywords and functionality to PHP's
keyword list? After searching for 30 mins using the terms Extending,
Adding, Language, Keywords, PHP .. I don't seem to see a thread on this
subject.
The keywords I would like to add are DOCUMENT, TEST, genManual, and
runTests. They would be used as part of the function declaration:
Document Function drawCircle () {}
The return value would be a Name Value pair array which could then be
processed by a user created / assigned special function. Similar to Class
AutoLoader.
The functions would be kicked off by another keyword .. genManual.
The TEST keyword would be the same. It would return boolean success or
failure. And would be executed with .. runTests.
Test Function drawCircle ()
{
$bSuccess = True;
$bSuccess &= Class::drawCircle ([params]); // test 1
...
$bSuccess &= Class::drawCircle ([params]); // test n
return ($bSuccess);
}
Please let me know,
Mike,