note 80428 deleted from function.include by nlopess

From: Date: Sat, 26 Apr 2008 17:41:23 +0000
Subject: note 80428 deleted from function.include by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138807@lists.php.net to get a copy of this message
Note Submitter: noyearzero at hotmail dot com ---- I've come across an odd happening. I'm not sure if its an intended result or not. main.php <?php $mm = 3440; $inch = $mm * 25.4; $inchint = settype($inch,"int"); include('output.php'); ?> output.php <?php echo $mm; // outputs 3440 echo $inch; // outputs NULL echo $inchint; // outputs 0 ?> it doesn't seem to output variables properly that have been set by expressions.

« previous php.notes (#138807) next »