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
Explain the difference between unlink() and unset()?
How can you encrypt password using php?
Explain what is the difference between session and cookie?
What is a comment in php?
What is difference between mysql_fetch_array and mysql_fetch_assoc?
What are php filters?
Where php language is used?
What is json php?
Which is better #define or enum?
What is php stack?
How could I install codeignitor ?
How do you check is php not empty?
What is active record in php?
Is php closing tag necessary?
How can MYSQL functions be available with PHP?