Pages

Explode in php | php explode function | explode function in php examples

Friday, 3 May 2013



 Explode function in php examples
 Explode () function:
Definition: explode is a string function. By using this function we can divide the string as array element.

Example:
 <? php

$str = "well come to explode";

print_r (explode (" ", $str));

?>

Output: - Array ([0] => well [1] => come [2] => to [3] => explode)
 

Most Reading