Answer Posted / jhon
Implode and Explode are function sthat are opposite in working
Explode converts a string into array where as implode
coverts an array in string
explode example
<?php
$str = "test explode in php";
print_r (explode(" ",$str));
?>
output will be:
Array
(
[0] => test
[1] => explode
[2] => in
[3] => php
)
implode example
<?php
$arr = array('hi','hello');
echo implode(" ",$arr);
?>
output will be:
hi hello
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is meant by variable variables in php?
Is php an api?
What advance thing in php7?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is Type hinting in PHP?
How to count all the lines of code in a directory and sub folder?
What is the meaning of a persistent cookie?
Why echo is faster than print in php?
What are properties in php?
What are php libraries?
What is member function?
How to create a table to store files?
What is baseurl?
Tell me how comparison of objects is done in php5?
Tell me how to find current date and time?