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 chrome logger?
Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
What is the method to execute a php script from the command line?
What is the current stable version of php? What advance thing in php7?
Is empty java?
What is __ construct in php?
what is difference between PHP4 , PHP5
Does wordpress still use php?
What is string in php?
What does $globals mean?
What are the ways to include file in php?
Does php class need constructor?
How stop the execution of a php scrip?
Is age interval or ordinal data?
Is there an easy way to delete an element from a php array?