Re: layout function
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: layout function

From: Janwillem Borleffs <jw@jwscripts.com>
Date: Mon Oct 03 2005 - 21:45:18 CEST

frizzle wrote:
> what do you mean with making the $state argument leading?
> Indeed, it's meant to close the table when $state === 0, but i
> don't quite understand your last answer.
> Thanks for helping by the way!!!!!
>

function whatever($state, $w = 0, $h = 0) {
    if ($state == 0) {
        // Close and full stop, don't care about
       // the values of $w & $h
    } else {
        // Do something with $w & $h
    }
}

JW
Received on Tue Oct 18 02:31:02 2005