title: How to display 'created_time' from facebook api response using php sdk 5
body: <p>I'm using php sdk 5 reading all post from my page using the Facebook API.</p>
  <p>My problem is just to echo the <code>created_time</code> from the response data to no avail.</p>
  <pre><code>  try {
          // Get a list of pages with you as admin
          $posts_request = $fb-&gt;get('/'.$fbpageid.'/feed?fields=id,message,created_time');
          
      } catch (FacebookRequestException $e) {
          echo 'Request error: ' . $e-&gt;getMessage();
          exit;
      }
  </code></pre>
  <p>And here a sample of the response data:</p>
  <pre><code>Array ( 
      [0] =&gt; Array ( 
          [id] =&gt; 2072715452753496_2089871617704546 
          [message] =&gt; sample of post number one 
          [created_time] =&gt; DateTime Object ( 
              [date] =&gt; 2018-02-15 02:39:28.000000 
              [timezone_type] =&gt; 1 
              [timezone] =&gt; +00:00 
          ) 
      ) 
      [1] =&gt; Array ( 
          [id] =&gt; 2072715452753496_2082500291775012 
          [message] =&gt; sample post number two 
          [created_time] =&gt; DateTime Object ( 
              [date] =&gt; 2018-02-10 10:24:53.000000 
              [timezone_type] =&gt; 1 
              [timezone] =&gt; +00:00 
          ) 
      ) 
      [2] =&gt; Array ( 
          [id] =&gt; 2072715452753496_2072717852753256 
          [created_time] =&gt; DateTime Object ( 
              [date] =&gt; 2018-02-03 09:56:16.000000 
              [timezone_type] =&gt; 1 
              [timezone] =&gt; +00:00 
          ) 
      ) 
      [3] =&gt; Array ( 
          [id] =&gt; 2072715452753496_2072717476086627 
          [created_time] =&gt; DateTime Object ( 
              [date] =&gt; 2018-02-03 09:55:46.000000 
              [timezone_type] =&gt; 1 [timezone] =&gt; +00:00 
          ) 
      ) 
  )
  </code></pre>