PHP explode() Function
Posted by Raj
PHP explode() Function
explode :- The explode() function split a string into an array.
Syntax
explode(separator,string)
Note: Separator cannot be an empty string
Example: explode()
<?php
$name= "PHP implode explode string functions";
$arr = (" ", $name);
print_r($arr);
?>
Output:
array([0]=>"PHP",[1]=>"implode",[2]=>"explode",[3]=>"string",[4]=>"functions");
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
array,
difference,
echo,
email,
example,
explode,
explode php,
explode() function,
functions,
history,
implode,
in php,
PHP,
PHP interview questions and answers,
separated,
split,
string,
string function in php
.You can leave a response, or trackback from your own site.