denoteone Posted April 16, 2009 Share Posted April 16, 2009 How would I explode a string using a double quote? $output = explode(""",$city); 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 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); 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. 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. 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 Link to comment https://forums.phpfreaks.com/topic/154357-solved-explode/#findComment-811492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.