hi, does php5 suport something like this?
function add(int $arg) { // .. }
function add(Object $arg) { // ... }
and when called:
add(123);
or
add($oObject);
the correct function is called?
That's polymorphism I think, and not possible in a weakly typed language like PHP.