I'm a bit lost.
with print_r
I get these results
stdClass Object ( [distlat] => 0 [distlng] => 0 [id] => 380 )
but how can echo the results?
like stdClass->distlat->$distlat
?
please give me a hint.
I'm a bit lost.
with print_r
I get these results
stdClass Object ( [distlat] => 0 [distlng] => 0 [id] => 380 )
but how can echo the results?
like stdClass->distlat->$distlat
?
please give me a hint.
So,
doesn't work for you?
You are using
print_r
on a variable I guess, such $myVariableTo access the data of your object use :
And try using
var_dump
instead ofprint_r
. Information is a little completer withvar_dump
. (You have type information with it).