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
Why super () is used in java?
Is php dead 2019?
How to track user logged out or not? When user is idle?
How to invoke a user function?
Tell me how can we determine whether a variable is set?
Can we run php on tomcat server?
Write a select query that will be displayed the duplicated site name and how many times it is duplicated?
What is uri routing?
How is the comparison of objects done in php?
What are php libraries?
Is overloading possible in php?
Can we override magic methods in php?
What is json php?
What is the difference between super () and this ()?
Explain what does $_server means?