| 
 Posted by Dikkie Dik on 09/06/07 08:59 
Dikkie Dik wrote: 
> ptdorf@gmail.com wrote: 
>> Hi everybody, 
>> 
>> one of the most powerful things about ruby is its ability to add 
>> funcionality to a class (or an instance of a class) at runtime. Can 
>> anyone please tell me if this can be done with php? 
>> 
>> thanks a million 
>> 
> You could search the manual for "magic methods" and follow the link  
> "overloading". It may not be what you would do in Ruby, but it should  
> get you the same possibilities. 
 
Sorry to follow up on my own post, but you can combine these techniques  
with "callback functions". You might want to take a look on that topic also.
 
  
Navigation:
[Reply to this message] 
 |