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 / jhon

Implode and Explode are function sthat are opposite in working
Explode converts a string into array where as implode
coverts an array in string
explode example

<?php
$str = "test explode in php";
print_r (explode(" ",$str));
?>
output will be:
Array
(
[0] => test
[1] => explode
[2] => in
[3] => php
)
implode example


<?php
$arr = array('hi','hello');
echo implode(" ",$arr);
?>
output will be:
hi hello

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is true about the singleton design pattern?

982


Tell me when a conditional statement is ended with an endif?

944


Explain some of the php string functions?

1019


What kind of things have you done on the social side?

9076


What is a php trait?

994


Where can I find php ini file?

998


What is properties of class?

1113


How to get no. of rows using MYSQL function?

1149


Explain me soundex() and metaphone()?

1037


What is a persistent cookie in php?

1036


What is the output of the ucwords function in this example?

1070


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2115


Is session a cookie?

1027


Do you know what does $globals means?

1097


What is crypt () in php?

991