Results 1 to 10 of 10
Threaded View
-
19th Jan 2011, 01:14 AM #1OPMember
str_replace help
PHP Code:$replace = array("&");
$str = str_replace($replace, "and", $str);
but whatever I try it does not seem to work out
PHP Code:$replace = array("what here?");
$str = str_replace($replace, "-", $str);
r0ck Reviewed by r0ck on . str_replace help $replace = array("&"); $str = str_replace($replace, "and", $str); Ok, so I figured the above out and its working great for me....however I would also like to replace the emdash with - but whatever I try it does not seem to work out $replace = array("what here?"); $str = str_replace($replace, "-", $str); Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaCreator - create posts from...
Version 3.47 released. Open older version (or...