Answer Posted / inno dev
explode= convert string into an array
such as
$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);
echo $pieces[0];
echo $pieces[1];
echo $pieces[2];
echo $pieces[3];
echo $pieces[4];
echo $pieces[5];
Implode=Join array elements with a string
means convert array into a string
such as
<?php
$array = array('lastname', 'email', 'phone');
$comma_separated = implode(",", $array);
echo $comma_separated;
?>
| Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
What are php variables?
Explain what does the expression exception::__tostring means?
What is an abstract class in php?
what is the use of include_once in php?
What is the use of ajax in php?
How do you access a get requests url parameter with php?
Does php support multiple inheritance?
Is empty in excel?
How to get the total number of values in an array?
Explain how to submit form without a submit button.
Explain the casts allowed in PHP?
What is a php tag?
Explain how is it possible to set an infinite execution time for php script?
What is the difference between characters and #?
What are regular expressions in programming?