Explode()
The explode() functon breaks a string into an array
Note
Separator cannot be empty
Synatx
explode(separator,string,limit)
Example
Output
Array([0]=>hello
[1]=>to
[2]=>india)
The explode() functon breaks a string into an array
Note
Separator cannot be empty
Synatx
explode(separator,string,limit)
Example
<?php $str="welcome to india"; echo explode("",$str); ?> |
Array([0]=>hello
[1]=>to
[2]=>india)
0 comments:
Post a Comment