|
Posted by Andy Jeffries on 07/17/07 08:47
On Sun, 15 Jul 2007 11:28:18 -0700, W Marsh wrote:
> Now, I can't believe how badly you are missing the point! Do you
> really, honestly, truthfully believe that a language like PHP should
> only be usable by somebody who has spent a long time reading sprawling
> documentation, when perhaps the only need to use it as a tool for a
> small job?
I believe when anyone is doing programming they shouldn't use a language
construct until they've seen the declaration to make sure they've got the
parameters correct.
The parameters for define are:
bool define ( string $name, mixed $value [, bool $case_insensitive] )
Therefore the first parameter should be a string not a defined constant.
The fact that PHP helps programmers by returning the string equivalent of
an undefined constant doesn't make it correct to call a function without
an idea of what the parameters are supposed to be.
Regards,
Andy
[Back to original message]
|