PHP 4.0 Bug #7808 Updated: variable value triggerd by function
| From: | hholzgra@php.net | Date: | Tue, 14 Nov 2000 14:11:15 +0000 |
| Subject: | PHP 4.0 Bug #7808 Updated: variable value triggerd by function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38067@lists.php.net to get a copy of this message | ||
ID: 7808
Updated by: hholzgra
Reported By: wico@cnh.nl
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
'&=' has a very different meaning
'$i &= $j' is an abbreviation of '$i = $i & $j'
and '&' being the binary 'bitwise and' operator,
not the unary 'get reference for'
what you are looking for is
$time="time";
echo $time();
sleep(1);
echo $time();
and this already works ...
Previous Comments:
---------------------------------------------------------------------------
[2000-11-14 08:54:13] wico@cnh.nl
Hiya
I don't know how to call it but i thing i could be usefull
example:
$time &= time(); // var to function
echo $time; // current time
sleep(1);
echo $time; // still current time
example 2:
$data &= get_some_database_records();
while ($data) {
echo $data;
}
Get_some_database_records will give every time its called the next var (until false)
This are just a examples i know some other thing you can do with it but there yes for your
imagenation :)
Greetz,
Wico
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7808