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
How to support multiple-page forms?
How can we increase execution time of a php script?
Which is incorrect with respect to separating php code and html?
How do I display php errors?
What's the difference between using mysql_ functions and pdo?
What is the purpose of the '.myd' file extension? What do thes file contain?
Explain different sorting function in php?
Which of the data type is compound datatype supported by PHP?
What type of headers have to be added in the mail function to attach a file?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
How to set a value in session? How to remove data from a session?
What is php7?
Why php 7 is faster?
Why do we use csrf token?
What is the use of Mbstring?