Activity Stream
48,167 MEMBERS
65503 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Respected Member
    try one of these:
    PHP Code: 
    $replace = array(chr(151)); 
       
    $str str_replace($replace"-"$str); 
    $replace = array('—'); 
       
    $str str_replace($replace"-"$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

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    Quote Originally Posted by Lock Down View Post
    try one of these:
    PHP Code: 
    $replace = array(chr(151)); 
       
    $str str_replace($replace"-"$str); 
    $replace = array('—'); 
       
    $str str_replace($replace"-"$str); 
    chr(151) isn't such a good idea... as UTF-8, ISO, etc. all doesn't have the same numbers for the same chars.
    LE with your pr2 site? <a href="http://tastro.org/">Tastro.org</a> or link exchance with our category page: <a href="http://tastro.org/i/hdtv">HDTV</a> | <a href="http://tastro.org/i/dvdrip">DVDRip</a> | <a href="http://tastro.org/i/r5">R5</a> | <a href="http://tastro.org/i/bdrip">BDRip</a> | <a href="http://tastro.org/i/brrip">BRRip</a>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

BE SOCIAL