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 Quote Link to comment 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"; ?> Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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.