Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what are Implode and Explode functions?

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


Please Help Members By Posting Answers For Below Questions

Explain what are some new features introduced in php7?

912


How can we increase execution time of a php script?

938


What is $$ in php?

960


Where can I find php ini file?

958


What is the phpstorm?

975


Explain how you can update memcached when you make changes to php?

1142


How do I start a php session?

989


what is constructor

1608


Tell me how can we display information of a variable and readable by human with php?

1039


How many types of array are there in php?

1079


What are the final class and final method?

1020


What is the function of string in c?

1012


> symbol is used to redirect the output of a command. State Whether True or False?

1156


How does php server work?

1028


How to Retrieve a Cookie Value?

1212