Debug: adebug
Sylvain Rabot (contact me)
This class can be used to check the values of given PHP variables and verify whether they contain values of the expected types.
It provides many functions that can check whether given values are of the basic PHP types: array, boolean, double, integer and string.
It may also check whether the tested values are objects of a given class or sub-class, a callable function, a valid resource handle, the path of a directory, regular file, executable program, readable or writable file, an uploaded file, or symbolic link, a finite or infinite number, or not a number.
When the values do not match the expected types, the class triggers an error denoting the line and the script file where the check was performed.
Click here for detailed information about this class on phpclasses.org