PHP: remove seconds off of returned time value
<p>I need to remove the seconds off of a returned time value. I get </p>

<pre><code>12:00:00
</code></pre>

<p>I want </p>

<pre><code>12:00pm
</code></pre>

<p>I tried using <code>date()</code> but it kept returning the time as 1:00am for everything.</p>

<pre><code>echo date('g:ia', $timestamp);
</code></pre>
