<script type="text/javascript">
var int_val = 111;
</script>
<?php
$js_int_val_in_php ='<script>document.write(int_val);</script>';
echo $js_int_val_in_php; // 111
echo '<br>';
echo gettype($js_int_val_in_php); // string
// but I want it as an integer
// even settype(); does not help!!
?>
Anyone has any good idea how do I pass js integer value as integer in PHP?? I love jQuery but in this situation, please no jQuery suggestion.