PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 193 All time: 8,545 This week: 455Up
Version License PHP version Categories
scalar-type-hinting 1.2GNU Lesser Genera...5.2PHP 5, Data types, Language


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: 42
All time rank: 2874 in Poland Poland
Week rank: 278 Up6 in Poland Poland Down
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

  • 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  
This week:0
All time:8,545
This week:455Up