Archive for April 15th, 2008

Simple type checking in PHP

<?php     error_reporting(E_ALL | E_STRICT); /* Manual optional type checking for PHP functions     Basic example:         function log_error($line_number, $filename, $desc)     {         CheckFunctionArgs(‘integer’, ‘string’, ‘string’);         [snip]     }     Object example:         class LogObject {} [...]

Posted by Matthew on April 15th, 2008

Filed under php, programming | 3 Comments »