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
Write a program to display a table of any given number?
Explain what are psrs? Choose 1 and briefly describe it?
How to fix "headers already sent" error in php
Name some of the constants in php and their purpose.
How to strip whitespace (or other characters) from the beginning and end of a string?
What is full form of PHP?
What is isset php?
Does empty check for null?
How to remove an empty directory?
What does odbc do in context with php?
What is the difference between exception::getmessage and exception::getline?
Can a trait extend a class php?
Tell me what is the default session time in php?
What is the purpose of basename() function in PHP?
What is php ci?