On Thu, Feb 5, 2009 at 18:50, Daevid Vincent <dae...@daevid.com> wrote:
> Is there a way to use the default values of a function without
> specifying every single one until the parameter you want to modify in
> PHP5 ?

    Daevid,

    Check out func_get_args(): http://php.net/func_get_args

    Then you can rename your sql_query() function to real_sql_query()
and create a new sql_query() as a wrapper function with
func_get_args() in place of statically-defined variables.

-- 
</Daniel P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to