Hi,

Done a lot of Perl & PHP coding over the years and one thing I _really_
liked about Perl is its 'use strict;' directive.  For those of you not
familiar with Perl, this made the script die if you don't (among other
things) declare your variables before using them.

Once the fingers are flying, stupid typing mistakes often come in and
it is more often when a variable name is being typed.  It would be
interesting to see how many PHP coders out there have spent ages trying
to find a bug in their code that was due to them mis-spelling a variable
or method name.

Anyway, I can't find a reference to anything in the manual that will
force PHP to strictly check variable names etc. to see if they are
declared before use and if not throw up an error.

Can somebody tell me which M to FR ?

Regards,


Dave
mail/php/2003-06-23.tx                                         php-general
+----------------------------------------------------------------------------+
| Dave Restall,       IIRC Limited, PO Box 46, Skelton, Cleveland, TS12 2GT. |
| Tel. +44 (0) 1287 639309 Mob. +44 (0) 7973 831245 Fax. +44 (0) 1287 635955 |
| email : [EMAIL PROTECTED]       [EMAIL PROTECTED]     Web : http://www.iirc.net |
+----------------------------------------------------------------------------+
| No man's ambition has a right to stand in the way of performing a simple   |
| act of justice.                                                            |
|         -- John Altgeld                                                    |
+----------------------------------------------------------------------------+


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to