I have an array within an array that contains settings. I need to figure out how to target specific parts of the array so i can turn them into a variable or output them. Here is the array’s vardump:
array(2)
{
[0]=> object(stdClass)#101(1)
{
["type"]=> string(9) "wordpress"
}
[1]=> object(stdClass)#122 (6)
{
["type"]=> string(7) "divider" ["width"]=> string(4) "full" ["divider_type"]=> string(5) "solid" ["color"]=> string(0) "" ["padding_top"]=> string(0) "" ["padding_bottom"]=> string(0) ""
}
}
I really don’t know php that well.
You have an array of objects.
Here is how you might access one of them.