PHP array issue: cannot use string offset as an Array
Posted: Tue Dec 08, 2009 5:36 pm
I get this error only some of the time with a call from an FQL query.
Fatal error: Cannot use string offset as an array
The result array looks like:
Any ideas about what the issue would be here?
Thanks,
Kevin
Fatal error: Cannot use string offset as an array
Code: Select all
$results = $facebook->api_client->fql_query('Select first_name, pic_big From user Where uid='.$user.'');
$fname = $results[0]['first_name'];
Code: Select all
Array
(
[0] => Array
(
[first_name] => Kevin
[pic_big] => http://profile.ak.fbcdn.net/v226/16/68/ ... 5_6373.jpg
)
)
Thanks,
Kevin