PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2011-01-03 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 191 All time: 7,972 This week: 793Up
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.

  Performance   Level  
Name: Artur Graniszewski <contact>
Classes: 14 packages by
Country: Poland Poland
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

Screenshots  
  • matching.JPG
  Files folder image Files  
File Role Description
Plain text file typehint.php Class Main class
Accessible without login Plain text file php_5.2_example.php Example PHP 5.2 example (without namespaces)
Accessible without login Plain text file php_5.3_example.php Example PHP 5.3 example (with namespaces)

 Version Control Unique User Downloads Download Rankings  
 0%
Total:191
This week:0
All time:7,972
This week:793Up