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 the methods of array in java?
How is a session id generated?
How to genrate report in wordpress cms
What should be the length of variable for SHA256?
What are the encryption functions in php?
How to block direct directory access in PHP?
What is difference between html and php?
Do you know how to enable error reporting in php?
Does https prevent csrf?
How to retrieve the original query string?
What is orm in php framework?
Tell me what is needed to be able to use image function?
Are php sessions cookies?
How do you create an array in php?
Tell me is it possible to protect special characters in a query string?