Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 185 All time: 7,319 This week: 1,397Up
Version License PHP version Categories  
scalar-type-hinting 1.2GNU Lesser General Publ...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
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Classes: 13 packages by
Country: Poland Poland
Age: 32
All time rank: 3295 in Poland Poland
Week rank: 121 Up5 in Poland Poland Equal
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:185All time:7,319
 This week:0This week:1,397Up