Archive for the ‘optimize’ Category

func_num_args() and func_get_arg()

Thursday, December 13th, 2007

func_num_args() and func_get_arg() are both very useful and powerful function that can be called from user defined functions. Now these examples are taken from the php.net [code='php'] [/code] The example should be pretty intuitive but if not, let me explain. func_num_args() returns the number of variable number of arguments that were passed to a ...