how to get value from an array
Posted
by hwd
on Stack Overflow
See other posts from Stack Overflow
or by hwd
Published on 2010-05-25T12:24:39Z
Indexed on
2010/05/25
12:31 UTC
Read the original article
Hit count: 213
php
how to get the value 4500 to a variable
stdClass Object ( [total] => 4500 )
i tried like these
$abc['total']
$abc->total
but get error when i tried to echo the variable
A PHP Error was encountered
Severity: 4096
Message: Object of class stdClass could not be converted to string
Filename: controllers/home.php
Line Number: 144
please help me
© Stack Overflow or respective owner