Answer Posted / kalaimani.k mca (gurunanak col
Example . explode()
<?php
$history= "php4 php5 php6";
$pieces = explode(" ", $history);
//separated the arrays
echo $history[0]; // php3
echo $history[1]; // php4
echo $history[1]; // php5
?>
//implode Join array elements with a string
implode() example
<?php
$array = array('lastname', 'email', 'phone');
$comma_separated = implode(",", $array);
echo $comma_separated;
//lastname,email,phone
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is use of count() function in php?
Tell me what does $_env means?
What is the meaning of xdebug?
How do you end a function in python?
Why constructor is not overridden?
Is key in array php?
Why do we use php?
What is the delimiter default in PHP?
Is php procedural or oop?
What are php magic methods/functions?
Explain difference between urlencode and urldecode?
What is default session time and path in php?
What is the maximum size of a database in mysql?
How to find a specific value in an array?
What are the 3 types of sessions?