PunjabHaker Posted February 5, 2007 Share Posted February 5, 2007 string1, string2 i need to make 2 checkboxes, first is string1 and second is string2 i need to split them by coma "," how can i do that ? thanks in advance Link to comment https://forums.phpfreaks.com/topic/37170-solved-how-to-split-string-please-help/ Share on other sites More sharing options...
PunjabHaker Posted February 5, 2007 Author Share Posted February 5, 2007 <?php $string = "string1, string2"; list($string1, $string2) = split(",", $string); echo "$string1, $string2"; ?> Link to comment https://forums.phpfreaks.com/topic/37170-solved-how-to-split-string-please-help/#findComment-177549 Share on other sites More sharing options...
BrandonE97 Posted February 24, 2007 Share Posted February 24, 2007 I have this but it doesnt seem to work: <?php list($fname,$fext)=split('.',$dirArray['$index']); ?> its running in a for loop. What am I doing wrong? Link to comment https://forums.phpfreaks.com/topic/37170-solved-how-to-split-string-please-help/#findComment-193133 Share on other sites More sharing options...
BrandonE97 Posted February 25, 2007 Share Posted February 25, 2007 Guess I should have put this in a new topic instead of a solved one lol. Link to comment https://forums.phpfreaks.com/topic/37170-solved-how-to-split-string-please-help/#findComment-193400 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.