Converting type numeric value from string to integer without changing its value
<p>I am reading a csv file and my code is reading the numeric value as a string.
But i need the value as integer. </p>

<p>e.g.   string <code>'5782492380'</code> as int <code>'5782492380'</code></p>

<p>Is there any best way to change the type of value from string to int in php code?</p>

<p>I have tried as </p>

<pre><code>(int) 5782492380
</code></pre>

<p>but it is changing the original value to <code>2147483647</code>.</p>
