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 include variables in double-quoted strings?
What is list function with their uses.
How do I use isdigit function?
why did u want to leave your past organisation?
Tell me what kind of things have you done on the social side?
What is the difference between indexed and associative array?
Tell me how a constant is defined in a php script?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
Is php easy language to learn?
Tell me is it possible to submit a form with a dedicated button?
What do you mean by having php as whitespace insensitive?
What was the old name of php?
Explain which cryptographic extension provide generation and verification of digital signatures?
which will print out the php call stack?
How can I display text with a php script?