Thread: replacetext()
View Single Post
  #4  
Old 11-18-2008, 10:24 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by [email protected] View Post
i don't get it =o


PHP Code:
function onCreated() {
  
temp.str "epic_underscores^4_life";
  
temp.str replacetext(str"_"" ");  // replace _ with " " (space)
  
temp.str replacetext(str"^"" "); // replace ^ with " " (space)

  
echo(str); // "epic underscores 4 life"

__________________
Reply With Quote