This question already has an answer here:
- spliting a string in php as a array 5 answers
I have an string in php like this pid1+2+price1+20+qty1+2+pid2+3+price2+20+qty2+1+
which is an outcome processing of some function. now I need to create table which should display the above result as
pid price qty 2 20 2 3 40 1
note: the result should be displayed as a string thanks
the function which i used to create the string is
$a=var_export($_REQUEST);
$b ='';
foreach($_REQUEST as $key=>$value)
{
$b.=$key."+".$value."+";
}
</div>