RE: [PHP] Warning: Undefined variable

From: Date: Tue, 02 Apr 2002 14:30:59 +0000
Subject: RE: [PHP] Warning: Undefined variable
Groups: php.general 
Request: Send a blank email to php-general+get-91139@lists.php.net to get a copy of this message
I've used undefined variables for over 30 years...which has caused many late-night debugging sessions and much pain. Defining and initializing variables is a good thing. I believe PHP has a flag set to warn of use of un-initialized data. I do prefer strongly-typed languages, such as C++. That said, I love the power that PHP provides as far as functionality is concerned. just my 2 pfennigs... -----Original Message----- From: Erik Price [mailto:pricee@hhbrown.com] Sent: Tuesday, April 02, 2002 8:26 AM To: Philip Olson Cc: kip; php-general@lists.php.net Subject: Re: [PHP] Warning: Undefined variable On Monday, April 1, 2002, at 11:15 PM, Philip Olson wrote: > Good little programmers define variables before > using them, or at least before evaluating them. Really? I'm not arguing with you, I'm curious: I thought that it was a valued feature of newer scripting languages that they do not require declaration of variables. At least that's what people say when they praise PHP or Python or whichever language allows this. Is this "feature" not as desirable as what I had first heard? Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#91139) next »