[ create a new paste ] login | about

Link: http://codepad.org/Pbg4n76i    [ raw code | output | fork | 1 comment ]

PHP, pasted on Mar 5:
1
2
3
4
5
<?php
$str="this is string";
$array=explode(" ",$str);
print_r($array);
?>


Output:
1
2
3
4
5
6
Array
(
    [0] => this
    [1] => is
    [2] => string
)


Create a new paste based on this one


Comments:
posted by Sharmamekrishna@gmail.com on Oct 11
How can we get output in each index with only three character
Like thi in first index
Sis in second index
Str in third
And ing at last
reply