• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question: SESSION and ARRAY

#3
[eluser]Unknown[/eluser]
thanks for the fast answer. I don´t mean it.

here the array with the normal session

Array ( [Donut] => Array ( [0] => I like it [1] => 5 [2] => 1 ) [Football] => Array ( [0] => i like it realy [1] => 1 [2] => 2 ) [Notebook] => Array ( [0] => 3 GHz 160 GB [1] => 1 [2] => 3 ) )

i want speak one variable and this is inside the one variable.
i want give this with foreach back.....

here is the example without CI

Code:
foreach ($_SESSION['Name'] as $key => $index){
    echo $key.'<br />';
    foreach ($index as $value){
     echo $value.'<br />';
   }
}


Messages In This Thread
Question: SESSION and ARRAY - by El Forum - 07-30-2007, 04:57 PM
Question: SESSION and ARRAY - by El Forum - 07-30-2007, 05:10 PM
Question: SESSION and ARRAY - by El Forum - 07-31-2007, 04:58 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.