james@home /ezc/trunk $ php-shell.sh PHP-Shell - Version 0.3.1, with readline() support (c) 2006, Jan Kneschke >> use '?' to open the inline help >> $a = 3; $b = (int)filter_var( $a, filter_id( 'INT' ) ); var_dump( $b ); echo $b; int(0) 0 >> $a = 3; $b = (int)filter_var( $a, filter_id( 'INT' ) ); var_dump( $b ); 3 >> echo $b 0 >> var_dump( $b ) int(0) >> james@home /ezc/trunk $