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
How can we check the value of a given variable is alphanumeric?
What is php in simple words?
Explain what does $_server means?
Does php use html?
what does this symbol mean in php?
What are the methods of array in java?
What are the special characters you need to escape in double-quoted stings?
What are the types of variables in php?
Why do we use session?
How do functions work?
How do you call a constructor for a parent class?
What is the role of php?
How can cross site request forgery csrf be prevented?
What is the difference between myisam and innodb?
What are differences between PECL and PEAR?