Maverickb7 Posted April 25, 2007 Share Posted April 25, 2007 I'm trying to use: str_replace("&", "?", $data) but I think the ; with & is cutting the code short. How can I escape that ; so it includes within the string and doesn't think its ending the line? Link to comment https://forums.phpfreaks.com/topic/48664-str_replace/ Share on other sites More sharing options...
trq Posted April 25, 2007 Share Posted April 25, 2007 You shouldn't need to but try.... str_replace('&', '?', $data); Link to comment https://forums.phpfreaks.com/topic/48664-str_replace/#findComment-238362 Share on other sites More sharing options...
taith Posted April 25, 2007 Share Posted April 25, 2007 might i also note... & is &... not ? Link to comment https://forums.phpfreaks.com/topic/48664-str_replace/#findComment-238364 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.