0
I’m importing with PHP for an api, and I don’t know how to get the values of object(stdClass)
who are inside the $fotos
. I tried it both ways below, but I believe I’m wrong:
foreach($fotos as $f){
var_dump($f);
}
foreach($fotos->id as $f){
var_dump($f);
}
I need to get the id, Description and 1024x1024 values
object(stdClass)#11 (3) {
["id"]=> string(6) "288848"
["description"]=> string(8) "Banheiro"
["1024x1024"]=> string(100) "https://s3.amazonaws.com/linkapi/images/properties/large/288848.jpeg?1587723622"
}
Update: So it worked for id and Description, but the 1024x1024 gives error, think q for being number:
foreach($fotos as $f){
foreach($f as $foto){
var_dump($foto->description);
}
}
Hello Leandro. The answer solved your problem?
– Guilherme Nascimento