in my case I want to convert a string value to integer , the value was returned by a JavaScript code, but when i convert in i got, a type int(0) so the values wasn't converted correctly
can anyone help me please, thanks in advance
this is the code
$screenwidth = "<script>document.write(screen.width);</script>";
var_dump($screenwidth);
var_dump((int)$screenwidth);
this what i get as output
string(46)"1200"
int(0)