php, string to int
<p>how convert from string to int?</p>

<pre><code>    If i print $width_s, get: 1024 
If i print $width, get 0.
</code></pre>

<p>How convert string to integer(number) ?</p>

<pre><code>$width_s = '&lt;script language="javascript"&gt;document.write(screen.width)&lt;/script&gt;';
$width = (int)$width_s;

var_dump($width);
</code></pre>
