Results 1 to 10 of 10
Hybrid View
-
19th Jan 2011, 08:29 PM #1Respected Member
try this:
2013 is en-dash and 2014 is em-dash
PHP Code:$str = str_replace("\x2014", "\x2D", $str);
$str = str_replace("\x2013", "\x2D", $str);
Lock Down Reviewed by Lock Down 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)
themaManager - edit and manage...
Version 4.22 released. Open older version (or...