LMSouq
php-dev Open

How can I echo or print an array in PHP?

EN
EnexoOnoma
1 month ago
3 views
Problem Description
I have this array Array ( [data] => Array ( [0] => Array ( [page_id] => 204725966262837 [type] => WEBSITE ) [1] => Array ( [page_id] => 163703342377960 [type] => COMMUNITY ) ) ) How can I just echo the content without this structure? I tried foreach ($results as $result) { echo $result->type; echo "<br>"; }

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base