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
Write down the benefits of php7?
Why php is sometimes called as embedded scripting language?
What is the use of imagetypes() method?
How do I see how many pages per session in google analytics?
Do you know when sessions ends?
How to get ip address of clients machine?
Tell me how can we automatically escape incoming data?
How can we change the value of a constant?
How to get elements in reverse order of an array in php?
What is slim framework?
What are the rules for naming a php variable?
What is the use of header() function in php?
What are the Formatting and Printing Strings available in PHP?
Is rent a variable cost?
What's the difference between accessing a class method via -> and via ::?