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 Get the Uploaded File Information in the Receiving Script?
What is beforeRender() used?
sort term descripttion form, report and uery
What exactly is PHP?
How to split a string into array using php?
What is constructor and destructor?
Tell me what is the use of "ksort" in php?
Which is faster for or foreach php?
What is difference between base_url and site_url?
What’s the difference between htmlentities() and htmlspecialchars()?
Which is the latest version of php?
What does pear stand for?
Is php deprecated?
Does csrf token change?
What is if isset ($_ post submit )) in php?