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 what are some new features introduced in php7?
How can we increase execution time of a php script?
What is $$ in php?
Where can I find php ini file?
What is the phpstorm?
Explain how you can update memcached when you make changes to php?
How do I start a php session?
what is constructor
Tell me how can we display information of a variable and readable by human with php?
How many types of array are there in php?
What are the final class and final method?
What is the function of string in c?
> symbol is used to redirect the output of a command. State Whether True or False?
How does php server work?
How to Retrieve a Cookie Value?