Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is this output blank?
    text
    copied!<p>I know I must be doing something simple wrong. When I do this:</p> <pre><code> echo '&lt;pre&gt;'; print_r($event-&gt;when); echo '&lt;/pre&gt;'; </code></pre> <p>I get this:</p> <pre><code> Array ( [0] =&gt; Zend_Gdata_Extension_When Object ( [_rootElement:protected] =&gt; when [_reminders:protected] =&gt; [_startTime:protected] =&gt; 2011-06-16T10:00:00.000-05:00 [_valueString:protected] =&gt; [_endTime:protected] =&gt; 2011-06-17T11:00:00.000-05:00 [_rootNamespace:protected] =&gt; gd [_rootNamespaceURI:protected] =&gt; [_extensionElements:protected] =&gt; Array ( ) [_extensionAttributes:protected] =&gt; Array ( ) [_text:protected] =&gt; [_namespaces:protected] =&gt; Array ( [atom] =&gt; Array ( [1] =&gt; Array ( [0] =&gt; http://www.w3.org/2005/Atom ) ) [app] =&gt; Array ( [1] =&gt; Array ( [0] =&gt; http://purl.org/atom/app# ) [2] =&gt; Array ( [0] =&gt; http://www.w3.org/2007/app ) ) [gd] =&gt; Array ( [1] =&gt; Array ( [0] =&gt; http://schemas.google.com/g/2005 ) ) [openSearch] =&gt; Array ( [1] =&gt; Array ( [0] =&gt; http://a9.com/-/spec/opensearchrss/1.0/ ) [2] =&gt; Array ( [0] =&gt; http://a9.com/-/spec/opensearch/1.1/ ) ) [rss] =&gt; Array ( [1] =&gt; Array ( [0] =&gt; http://blogs.law.harvard.edu/tech/rss ) ) ) ) ) </code></pre> <p>I'm then trying to get <code>startTime</code> by doing this:</p> <pre><code>$StartTime = $event-&gt;when-&gt;startTime; </code></pre> <p>But I'm not getting anything. </p> <p>And yet, when I do this:</p> <pre><code> pr($event-&gt;published); </code></pre> <p>I get this:</p> <pre><code>Zend_Gdata_App_Extension_Published Object ( [_rootElement:protected] =&gt; published [_rootNamespace:protected] =&gt; atom [_rootNamespaceURI:protected] =&gt; [_extensionElements:protected] =&gt; Array ( ) [_extensionAttributes:protected] =&gt; Array ( ) [_text:protected] =&gt; 2011-06-15T03:32:14.000Z [_namespaces:protected] =&gt; Array ( [atom] =&gt; Array ( [1] =&gt; Array ( [0] =&gt; http://www.w3.org/2005/Atom ) ) [app] =&gt; Array ( [1] =&gt; Array ( [0] =&gt; http://purl.org/atom/app# ) [2] =&gt; Array ( [0] =&gt; http://www.w3.org/2007/app ) ) ) ) </code></pre> <p>and I can do this:</p> <pre><code>$dateAdded = $event-&gt;published-&gt;text; echo $dateAdded; </code></pre> <p>and I see an output...</p>
 

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