denoteone Posted April 16, 2009 Share Posted April 16, 2009 How would I explode a string using a double quote? $output = explode(""",$city); Quote Link to comment https://forums.phpfreaks.com/topic/154357-solved-explode/ Share on other sites More sharing options...
kenrbnsn Posted April 16, 2009 Share Posted April 16, 2009 Surround the double quote by single quotes or escape it: <?php $output = explode('"',$city); // or $output = explode("\"",$city); ?> Ken Quote Link to comment https://forums.phpfreaks.com/topic/154357-solved-explode/#findComment-811483 Share on other sites More sharing options...
gffg4574fghsDSGDGKJYM Posted April 16, 2009 Share Posted April 16, 2009 $output = explode('"', $city); OR $output = explode("\"", $city); Quote Link to comment https://forums.phpfreaks.com/topic/154357-solved-explode/#findComment-811484 Share on other sites More sharing options...
MasterACE14 Posted April 16, 2009 Share Posted April 16, 2009 change it to... <?php $output = explode("\"",$city); 3 replies in a row lol. Quote Link to comment https://forums.phpfreaks.com/topic/154357-solved-explode/#findComment-811486 Share on other sites More sharing options...
gffg4574fghsDSGDGKJYM Posted April 16, 2009 Share Posted April 16, 2009 I'm slow. Quote Link to comment https://forums.phpfreaks.com/topic/154357-solved-explode/#findComment-811488 Share on other sites More sharing options...
denoteone Posted April 16, 2009 Author Share Posted April 16, 2009 thanks everyone Quote Link to comment https://forums.phpfreaks.com/topic/154357-solved-explode/#findComment-811492 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.