How to cast long to string?
<p>I need to cast a tweet id, which is a long, to a string. For instance, I have:</p>

<p><code>$id = 39685855740174336;</code></p>

<p>But <code>var_dump($id)</code> prints <code>float(3.9685855740174E+16)</code>.</p>

<p>I tried to get the string value using <code>strval()</code>:</p>

<p><code>var_dump(strval($id));</code></p>

<p>but I get <code>string(19) "3.9685855740174E+16"</code>.</p>

<p>What I expect is:</p>

<p><code>string(17) "39685855740174336"</code>.</p>

<p>Any solutions?</p>
