RE: [PHP] Using functions before they're defined

From: Date: Fri, 08 Feb 2002 18:06:51 +0000
Subject: RE: [PHP] Using functions before they're defined
Groups: php.general 
Request: Send a blank email to php-general+get-84022@lists.php.net to get a copy of this message
> -----Original Message----- > From: Martin Towell [mailto:martin.towell@world.net] > Sent: 07 February 2002 22:17 > To: php-general@lists.php.net > Subject: RE: [PHP] Using functions before they're defined > > I haven't looked at the php's source code, but maybe it's a > two pass parser > (??) first it gets all the functions then it executes the > code ???????? Executing the code is not parsing!! Executing the code happens *after* it's been parsed. So, yes, it's a two-stage process, but the stages are parsing and executing. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#84022) next »