FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » adding a method to a built-in class ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
adding a method to a built-in class ? [message #179467] Tue, 30 October 2012 12:05 Go to previous message
Une Bvue[1] is currently offline  Une Bvue[1]
Messages: 9
Registered: September 2012
Karma:
Junior Member
newbie to php5, i'd like to know if i could add a method to a built-in
class.

The purpose is to ass #to_sql() method to the String class.

#to_sql() would just replace any oiccurence of the character "'" by two
of it "''".
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How do I turn on graphics (GD2) on a Windows 7 system?
Next Topic: Output status during processing
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Dec 20 08:24:44 GMT 2024

Total time taken to generate the page: 0.03948 seconds