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 is a php form?
What is the difference between die () and exit () in php?
How to read a file in binary mode?
Tell me how can we display information of a variable and readable by human with php?
Where to put php files in apache server?
What are different types of errors available in Php?
What are php data types?
What is rest api in php?
How is php different from other languages?
Is key exist in array php?
How do http requests work?
How can you upload a file using php?
How to parse configuration file in php?
What is the difference between $message and $$message in php?
Which is not a php magic constant?