tibberous Posted January 1, 2008 Share Posted January 1, 2008 I have a textarea, and am trying to get it to convert left and right facing quotes into “ and ” I figured I could do this with str_replace, and it seemed to work on windows. but not on linux, Does anyone know how to do this? Quote Link to comment https://forums.phpfreaks.com/topic/83969-solved-converting-left-and-right-quotes/ Share on other sites More sharing options...
tibberous Posted January 1, 2008 Author Share Posted January 1, 2008 $search = array(chr(226).chr(128).chr(156), chr(226).chr(128).chr(157)); $replace = array('“', '”'); Quote Link to comment https://forums.phpfreaks.com/topic/83969-solved-converting-left-and-right-quotes/#findComment-427289 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.