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 / suraj raut paul

Implode()
this just concatenate the variables and placed into one single variable for example
<form action=<?php $_php_self; ?> method="post">
<label for="dob">Enter Your date of Birth</label>

<select name="day">Day</option>
<option value="1">sun</option>
<option value="2">mon</option>
</select>
<select value="month">Month
<option value="1">Jan</option>
<option value="2">feb</option>
</select>

<select name="year">year
<option value="2012">2012</option>
<option value="2011">2011</option>
</select>

when sending this value in database in single field then you need to join all the values in single variable that is
$dob= implode(array($_post['day'], $_post['month', $_post['year']));

Then it's just concatenated all these values come from the from into single variable $dob.

Explode()
this is the function that is just reverse of the implode.
that it's just split the value given in one varible into array.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Split and Explode in PHP?

995


Inside a php function, what param needs to be set in order to access a global variable?

906


explain php variable length argument function.

992


What is oops php?

911


Is null or empty c#?

884


What is htaccess in php?

1166


Tell me what is the use of the function htmlentities?

897


What is the function used to change the root directory in PHP?

974


Php says that an array is an ordered map. But how the values are ordered in an array?

1009


Does php class need constructor?

898


What is active record in php?

843


how retrive the video file in php using video tag

1703


In how many ways we can retrieve the data in the result set of mysql using php?

882


What does csrf token mean?

862


Is it possible multiple inheritance in php?

967