tags:

views:

105

answers:

2

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.

+1  A: 

Just call explode with the same separator you used for implode:

$foo=array(1,2,3,4);

$imploded=implode('|', $foo);

$restored=explode('|', $imploded);
Paul Dixon
A: 

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.

empi