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

Explain what are psrs? Choose 1 and briefly describe it?

951


How to create a text file in PHP?

1114


Does php support multiple inheritance?

966


Tell me how can you pass a variable by reference?

939


Tell me how to strip whitespace (or other characters) from the beginning and end of a string?

964


What are arguments in php?

996


How to get the number of characters in a string?

1019


Tell me what is the use of "ksort" in php?

990


What is sorting php?

929


What is the ioncube php loader?

1011


What is boolean in php?

971


How can we execute a php script using command line?

1037


How to get no of arguments passed to a PHP Function?

930


How do I clear my browser session?

1029


What are the characteristics of php variables?

1060