Jump to content

Array / Object question


kingy-en

Recommended Posts

hi i have a parameter stored in a array.  can anyone tell me how to call 114 out of this array

 

 

stdClass Object ( [max(id)] => 114 )

 

its is comming from a sql query - SELECT MAX(id) FROM dev;

 

any help will be amazing

 

i have tried

 

 

$var = $sql_result->id;

$var = $sql_result->max;

 

neither work unfortunately.

 

Link to comment
https://forums.phpfreaks.com/topic/124556-array-object-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.