Re: & help

From: Date: Sat, 25 Aug 2001 17:25:22 +0000
Subject: Re: & help
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-64447@lists.php.net to get a copy of this message
"Tyler Longren" <tyler.longren@midiowa.net> wrote in message news:20010825105552.1c393f2b.tyler.longren@midiowa.net... > > On Sat, 25 Aug 2001 15:03:49 +1000 > "GaM3R" <gamr@outworld.cx> wrote: > > > can anyone explain to me exactly what this would do differently? > > > > $data = fread($fp, filesize($file)); > > > > $data = &fread($fp, filesize($file)); > > That will stop fread from producing errors. So, if you don't want to see > any error's from fread, put a & in front of it. This can also be done > with other functions: > > $db = &mysql_select_db("dbname"); You're thinking of the @ error-control operator. '=&' is 'get a reference to the returned array'.

« previous php.general (#64447) next »