|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7808 variable value triggerd by function
Submitted: 2000-11-14 08:54 UTC Modified: 2010-11-24 13:55 UTC
From: wico at cnh dot nl Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 4.0 Latest CVS (14/11/2000) OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: wico at cnh dot nl
New email:
PHP Version: OS:


 [2000-11-14 08:54 UTC] wico at cnh dot nl

I don't know how to call it but i thing i could be usefull


$time &= time();   // var to function 

echo $time; // current time
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 :)




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-14 09:11 UTC]
 '&=' 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 

  echo $time();
  echo $time();

  and this already works ... 
 [2000-11-14 09:17 UTC] wico at cnh dot nl
I know &= is for somthing else it was just to illustrate what i ment

&= could also be something else

  echo $time();
  echo $time();

is not where i'm looking for

Please read carefully and try to understand what i mean



 [2010-11-24 13:55 UTC]
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2010-11-24 13:55 UTC]
Doing while($data = get_some_database_records()) works just fine.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 30 05:01:24 2021 UTC