Tarjei Huse wrote: > I'm using a lot of parameters to set different values to a bolean value, but I > am a bit confused to what values I should use. Should I use: > TRUE / FALSE > 1 / 0 > or > yes /no
Whichever you want, but be aware that a parameter that is not set returns FALSE when called as a function. > ? How should the test be? > if ($obj->param) > if ($obj->param == true) > if ($obj->param == "true") it's probably going to be $obj->domain_param, but to Midgard it doesn't matter. Parameters are strings, so using booleans or ints you'd be converting these at every access. Emile --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
