Getting a value from an object php

epik

New Member
I used var_dump on an object in my code. \[code\]print var_dump( $$user);\[/code\] result: \[code\]object(stdClass)#35 (1) { ["user1_ready"]=> string(1) "0" }\[/code\] How do I get to this value (0 in this case). I tried print $$user which resulted in \[code\]Catchable fatal error: Object of class stdClass could not be converted to string in\[/code\] I need something like \[code\]if($$user == 0){echo "error message") else {\[/code\]
 
Back
Top