0

PHP array is following when i print it in file of $obj array

Array
(
    [0] => stdClass Object
        (
            [0] => CONNECT_TO
            [1] => Connect to 
        )

    [1] => stdClass Object
        (
            [0] => LANGUAGE
            [1] => Language
        )

    [2] => stdClass Object
        (
            [0] => MAP
            [1] => Map
        )
)

How i get value of O and 1 index My code is this

for($i=0;$i<$l;$i++)
             {
                $x=$obj[$i][0];
                $y= $obj[$i][1];
                   echo $x;
                   echo $y;

             }

is not working

Alive to die - Anant
  • 70,531
  • 10
  • 51
  • 98
Partha
  • 1
  • 2

0 Answers0