hoangthi Posted May 11, 2014 Share Posted May 11, 2014 (edited) I have a sentence: $s = 'this,is,a,my example !'; So I want to get this: $s2[0] = this $s2[1] = is $s2[2] = a $s2[3] = my $s2[4] = my example ! I tried to use a for loop to strlen ($s) but not successful So thanks for helping Edited May 11, 2014 by hoangthi Quote Link to comment Share on other sites More sharing options...
Solution hoangthi Posted May 11, 2014 Author Solution Share Posted May 11, 2014 Oh right, I can use function: explode 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.