I am getting this values from database.
$Generic=$res['Generic'];
$Trade=$res['Trade'];
$Dos=$res['Dos'];
$Duration=$res['Duration'];
I stored the values using "implode function".
How to get these values into "explode function" PLz Help me.
I am getting this values from database.
$Generic=$res['Generic'];
$Trade=$res['Trade'];
$Dos=$res['Dos'];
$Duration=$res['Duration'];
I stored the values using "implode function".
How to get these values into "explode function" PLz Help me.
Just call explode with the same separator you used for implode:
$foo=array(1,2,3,4);
$imploded=implode('|', $foo);
$restored=explode('|', $imploded);
Using implode causes losing named index information (only the sequence of variables in array matters - so variables would be on indexes 0, 1 and so on). If you want to keep named indexes use serialize.