note 80428 added to function.include
| From: | noyearzero at hotmail dot com | Date: | Tue, 15 Jan 2008 17:16:14 +0000 |
| Subject: | note 80428 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135120@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 208.69.120.35
Probable Submitter: 24.144.208.11
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- https://master.php.net/note/edit/80428
Del: integrated -- https://master.php.net/note/delete/80428/integrated
Del: useless -- https://master.php.net/note/delete/80428/useless
Del: bad code -- https://master.php.net/note/delete/80428/bad+code
Del: spam -- https://master.php.net/note/delete/80428/spam
Del: non-english -- https://master.php.net/note/delete/80428/non-english
Del: in docs -- https://master.php.net/note/delete/80428/in+docs
Del: other reasons-- https://master.php.net/note/delete/80428
Reject -- https://master.php.net/note/reject/80428
Search -- https://master.php.net/manage/user-notes.php