Wildcards in PHP functions

akatiyaloces

New Member
I am not sure if the term "Wildcard" can explain my point, but sometimes in some ready scripts we are able to call a non defined function like \[code\]find_by_age(23)\[/code\] where age can be anything else that's mapped to a database table record. So i can call \[code\]find_by_name\[/code\], \[code\]find_by_email\[/code\], \[code\]find_by_id\[/code\] and so on. So how can we do such thing either in procedural or object oriented ways ?
 
Back
Top