How to extract data from this type of array? It is a query in Wordpress
Asked
Viewed 103 times
0
I need to extract the e-mail and the nome of this user but I don’t know how to proceed in this arrays. You can help me learn how to proceed to extract this data and record it into a variable?
2
It’s not just giving variavel = foo[25].meta_value?
It’s not just giving
variavel = foo[25].meta_value
?– DH.
@Darkhyudra would have no way of using this [25]?
– Marcos Vinicius
It is an array of objects, can use a foreach or can directly access a,
$arr[25]->meta_value
– rray
It would be so cool if you did a search right here on Sopt before asking... http://answall.com/search?q=%22stdclass+Object%22
– brasofilo