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 / inno dev

explode= convert string into an array
such as
$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);
echo $pieces[0];
echo $pieces[1];
echo $pieces[2];
echo $pieces[3];
echo $pieces[4];
echo $pieces[5];

Implode=Join array elements with a string
means convert array into a string

such as
<?php

$array = array('lastname', 'email', 'phone');
$comma_separated = implode(",", $array);

echo $comma_separated;
?>

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);

995


How do you compare strings in java?

928


What is a comment in php?

1084


What does $_env means?

936


What is the use of super-global arrays in php?

963


What is the difference between substr() and strstr()?

1395


What does $this do in php?

970


What is binary safe function in php?

1063


How to call php function in jquery?

1070


Is php required for wordpress?

1041


How to concatenate two strings together in php?

1064


What are the features and advantages of object-oriented programming in php?

940


Can a trait extend a class php?

985


How to execute a function in php?

945


Tell me how to find the position of the first occurrence of a substring in a string?

969