Thread: overload
View Single Post
Old 08-18-2003, 09:15 PM   #8 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
hmm ... good point .. but it's still not the same as making different functions based on what parameters are sent ..

.. although , . i suppose you can test for the second variable and make a different function depending on its value ..

however, what if there is more than 1 pre-defined variable in the argument, you can't determine what variable is being sent .. i mean what if the second variable you send is null, and the third is not .. it only works inline like that.

i suppose ultimately php would have to be data type sensitive .. which would make us give up a lot of little luxuries.
__________________
Mike
sde is offline   Reply With Quote