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
Is php better than python?
Can I use php in html?
Does exist in php?
How can we change the maximum size of the files to be uploaded?
Is php a framework?
What is php key?
Which is better session or cookie?
Why we use get in php?
What is the purpose of $_ session?
How to find the index of an element in an array php?
What is php form validation?
How to create an array from php string?
How many columns can be added in a table in mysql?
What is self in php?
Can we use include ("xyz.php") two times in a php page "index.php"?