Reputation: 11
I have an array as follows:
[STATUS] => Array
(
[Information] = A
[More Info ] = B
)
[GPU0] => Array
(
[GPU] => 0
[INFO] => 100
)
Looking to use PHP to show [INFO] results. Right now I have something like this:
$array = print_r($result, true)."\n";
echo $array['GPU0']['GPU'];
My results are as follows:
Illegal string offset 'GPU0' in /var/www/somethinghere.php on line 117
Upvotes: 0
Views: 38