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
Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
How do you compare strings in java?
What is a comment in php?
What does $_env means?
What is the use of super-global arrays in php?
What is the difference between substr() and strstr()?
What does $this do in php?
What is binary safe function in php?
How to call php function in jquery?
Is php required for wordpress?
How to concatenate two strings together in php?
What are the features and advantages of object-oriented programming in php?
Can a trait extend a class php?
How to execute a function in php?
Tell me how to find the position of the first occurrence of a substring in a string?