Re[2]: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Davey
Hello Jason, Thursday, April 28, 2005, 4:23:43 PM, you wrote: JB> Indeed... and replace ?a=22 with ?first=22 in my message as well. JB> :-/ Heh.. ok :) No worries, demonstrated to me that RegGlobs aren't quite as destructive as popular myth would lead you to believe (not that it'll make me star

Re[2]: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Davey
Hello Jason, Thursday, April 28, 2005, 3:25:10 PM, you wrote: JB> /** Page called with ?a=22 appended to URL */ JB> function add($a,$b,$c) { JB>return $a+$b+$c; JB> } JB> $total = add($first, $second, $third); JB> /** You think this will be 0, but with register_globals this is actually JB>