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 / puneet bhatt

explode function:-it breaks a string into array.
<?php
$str="hello world.it's a beautiful day.":
print_r(explode(" ",$str):
?>
ans-ARRAY
[0]=>hello
[1]=>world.
[2]=>it's
[3]=>a
[4]=>beautiful
[5]=>day.

implode:-returns a string from elements of an array.
<?php
$arr=array('hello','world!',beautiful,'day!');
echo implode(" ",$arr);
?>
ans-hello world! beautiful day!

Is This Answer Correct ?    36 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain why would we use === instead of ==?

988


What's the best method for sanitizing user input with php?

976


How to enable error reporting in php?

1112


Do you know is it possible to extend the execution time of a php script?

1090


Is key in array php?

1057


Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?

1023


What are the ways to include file in php?

1045


What does $globals mean?

1011


What is php and why it is used?

1085


Where sessions stored in PHP?

1049


Should I use mysqli or pdo?

996


How the web server interprets php and interacts with the client?

1016


What is array filter php?

968


How to call php function from javascript using ajax?

1051


How to stop the execution of php script?

1021