Explode() function is used for convert string to array type data. You can use this function for break string use with existing character in string. Such as-

<?php
$string=”I love my india”;
$array=explode(” “,$string);
print_r($array);

output:
array(
0=>”I”,
1=>”love”,
2=>”my”,
3=>”india”
);

 

News Reporter
IT Software and web development, Core PHP, JavaScript, JQuery, HTML, CSS, CakePHP, Angularjs, Codeigniter etc.

Leave a Reply

Your email address will not be published. Required fields are marked *

error: