IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New PHP and "set" variables.
PHP has a simpler version of The Visual BASIC Variable Problem. In PHP, you can query the symbol table to see if a variable is defined or not. Whilst this seems like a good idea, in practice it's not. It is much easier if the language does not distinguish between a variable not in the symbol table versus containing a special value, usually null. PHP unfortunately evaluates expressions involving non-existent variables uniquely compared to a particular value; this the constant checking that variables "exist" or are "set". When I programmed with PHP, it often drove me up the wall.

(Visual BASIC lets variables have several states other than simply existing with a value. These include Empty and Nothing as well as actually not existing.)

Wade.

Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please

-- "Anything but Ordinary" by Avril Lavigne.

New gawd
Some cutesy idiot's idea of "depth".
-drl
     [ siiiiiiiiiiiiiiiiiiiiiiigggggghhhhhhhhhhhhhh ] - (drewk) - (17)
         Does PHP have the equivalent of 'use strict;'? - (ben_tilly) - (8)
             or Option Explicit for the VB world :-) - (ChrisR)
             Trying to figure out how I can use this - (drewk) - (6)
                 His solution is more general than that - (ben_tilly) - (5)
                     Finally had time to reply to this - (drewk) - (4)
                         Re: Finally had time to reply to this - (deSitter)
                         That's backwards :-( - (ben_tilly) - (2)
                             Gosh, really? - (drewk) - (1)
                                 Gah. I wish that was unusual. :-( -NT - (ben_tilly)
         Using PHP since 2001, I see... :( -NT - (FuManChu)
         Yup, many compilers just leave . . - (Andrew Grygus)
         This is why I dislike PHP's set-ness model. - (static) - (4)
             Re: This is why I dislike PHP's set-ness model. - (deSitter) - (3)
                 PHP and "set" variables. - (static) - (1)
                     gawd - (deSitter)
                 (Dupe.) -NT - (static)
         Just off a 42-minute call, 3 a.m. local time, must sleep - (drewk)

Oh good, just go the wrong way why don't you!
39 ms