Note that there are some explanatory texts on larger screens.

plurals
  1. POforeach: how to iterate this
    primarykey
    data
    text
    <pre><code>object(stdClass)[1] public 'inbox' =&gt; array 0 =&gt; object(stdClass)[2] public 'from' =&gt; string '55512351' (length=8) public 'date' =&gt; string '29/03/2010' (length=10) public 'time' =&gt; string '21:24:10' (length=8) public 'utcOffsetSeconds' =&gt; int 3600 public 'recipients' =&gt; array 0 =&gt; object(stdClass)[3] public 'address' =&gt; string '55512351' (length=8) public 'name' =&gt; string '55512351' (length=8) public 'deliveryStatus' =&gt; string 'notRequested' (length=12) public 'body' =&gt; string 'This is message text.' (length=21) 1 =&gt; object(stdClass)[4] public 'from' =&gt; string '55512351' (length=8) public 'date' =&gt; string '29/03/2010' (length=10) public 'time' =&gt; string '21:24:12' (length=8) public 'utcOffsetSeconds' =&gt; int 3600 public 'recipients' =&gt; array 0 =&gt; object(stdClass)[5] public 'address' =&gt; string '55512351' (length=8) public 'name' =&gt; string '55512351' (length=8) public 'deliveryStatus' =&gt; string 'notRequested' (length=12) public 'body' =&gt; string 'This is message text.' (length=21) .... .... </code></pre> <p>I have this foreach, but it does not iterate <strong>address</strong>, <strong>name</strong>, <strong>deliveryStatus</strong>! Could you show how to get this data?</p> <pre><code>foreach ($data-&gt;inbox as $note) { echo '&lt;p&gt;'; echo 'From : ' . htmlspecialchars($note-&gt;from) . '&lt;br /&gt;'; echo 'Date : ' . htmlspecialchars($note-&gt;date) . '&lt;br /&gt;'; echo 'Time : ' . htmlspecialchars($note-&gt;time) . '&lt;br /&gt;'; echo 'Body : ' . htmlspecialchars($note-&gt;body) . '&lt;br /&gt;'; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload