Implode means return a string from the elements of an array that means it converts an array into the srting.Explode split a string by string,it change a string into an array.
For example consider a simple driving form,
<form name="aform" method="post" action="conn.php" onsubmit="return validation();"> <table border="0px" cellpadding="10" cellspacing="0" id="tbl"> <tr><td align="center" colspan="2">Sample Driving Form</td></tr> <tr> <td>Vehicle</td> <td><input type="checkbox" name="vehicle[]" value="bus" />bus <input type="checkbox" name="vehicle[]" value="car" />car <input type="checkbox" name="vehicle[]" value="bike" />bike</td> </tr> <tr><td colspan="2" align="center"><input type="submit" name="submit" value="submit" /></td></tr> </table> </form>
Lets see the output