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
What are the difference between array_keys() and array_key_exists() in php?
What is the capacity of mysql database?
How to delete cookie files on your computer?
Why do we use javascript in php?
What are the different tables(engine) present in mysql, which one is default?
Could we start a variable with number like $4name?
What is the array in php?
What is a composer in PHP?
Do you know what's the difference between __sleep and __wakeup?
What is the difference between explode () and split () functions in php?
How do you define a constant?
What is the purpose of break and continue statement?
Tell me how can you pass a variable by reference?
Is php dying 2018?
What is the difference between indexed and associative array?