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
Whether php supports microsoft sql server?
How to count all the lines of code in a directory and sub folder?
Explain which cryptographic extension provide generation and verification of digital signatures?
Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani
What are static variables in php?
What does empty mean in php?
Is php 7.0 stable?
Where php language is used?
How would you determine the size of a file in php?
Tell me what are sql injections, how do you prevent them and what are the best practices?
How do I stop php artisan serve in windows?
Why do we use sessions in php?
What is the difference between characters 34 and x34?
How come the code works, but does not for two-dimensional array of mine?
Explain Constant in Class?