I have array of object if I using print_r looks like :
Array
(
[0] => stdClass Object
(
[name] => User1
[user_id] => 1
[email] => [email protected]
)
[1] => stdClass Object
(
[name] => User2
[user_id] => 2
[email] => [email protected]
)
[2] => stdClass Object
(
[name] => User3
[user_id] => 3
[email] => [email protected]
)
)
I want to loop and show them using Twig Engine then access member of object like name, email using Twig Engine too. How do that? I was tried but always error. I'm new about Twig.
nameoremailoruser_id. I want to show them as html like<li>. And also with these value I will use one of them for another proses.