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 the use of extract function in php?
What are the advantages of stored procedures?
What is encapsulation in php with example?
How to create a mysql connection?
Why is node js better than php?
How we get browser details of clients machine?
Is php a mvc?
What is associative array in php?
Tell me what does the scope of variables means?
Is empty array php?
How is it possible to return a value from a function?
Why shouldn't I use mysql_* functions in php?
Is php closing tag necessary?
Please explain is it possible to use com component in php?
What are the advantages of triggers?