if you look at, for example, htmlentities(), it can take a constant as argument (the quote_style parameter). How would you do this in a user define function?
like this (?) : function foo($bar=0) { define("ALL",0); define("FIRSTHALF",1); define("SECONDHALF",2); switch ($bar) { case ALL: .... case FIRSTHALF: .... case SECONDHALF: .... } } foo(SECONDHALF); : bobo : -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php