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
Which is true about the singleton design pattern?
Tell me when a conditional statement is ended with an endif?
Explain some of the php string functions?
What kind of things have you done on the social side?
What is a php trait?
Where can I find php ini file?
What is properties of class?
How to get no. of rows using MYSQL function?
Explain me soundex() and metaphone()?
What is a persistent cookie in php?
What is the output of the ucwords function in this example?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
Is session a cookie?
Do you know what does $globals means?
What is crypt () in php?