Java and C# compatible scalar type hinting: Check the types of called function arguments

Recommend this page to a friend!
  Info   Screenshots   View files (3)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 192 All time: 8,372 This week: 431
Version License PHP version Categories
scalar-type-hinting 1.2GNU Lesser Genera...5.2PHP 5, Data types, Language
Description Author

This class can be used to check the types of called function arguments.

It sets up an error handler function that can determine if a function is being called with the wrong types of arguments.

The error handler checks if the type hinting classes for the function being called is string, integer, float, double, boolean and checks if the argument values are of the declared types.

Picture of Artur Graniszewski
  Performance   Level  
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Classes: 14 packages by
Country: Poland Poland
Age: 38
All time rank: 2955 in Poland Poland
Week rank: 136 3 in Poland Poland
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

  • matching.JPG
File Role Description
typehint.php Class Main class
php_5.2_example.php Example PHP 5.2 example (without namespaces)
php_5.3_example.php Example PHP 5.3 example (with namespaces)

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,372
This week:431

For more information send a message to info at phpclasses dot org.