Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the use of func_get_args in php?

user-image
Question added by Jargam Abbas Sayyed Mohammad Azam , Sr. Technical Specialist , Samco Securities Limited
Date Posted: 2013/12/28
Daniel Marx
by Daniel Marx , Software Developer , Check24

Implement PHP functions with a variable number of arguments. func_get_args() returns the passed arguments as an array.

Muhammad Majid Saleem
by Muhammad Majid Saleem , Senior PHP Developer / Project Manager , SwaamTech

func_get_args() returns an array comprising a function's argument list. You may see its complete detail: http://pk1.php.net/func_get_args

Julfkar  Moh Umar
by Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited

This return all arguments used to call a function.

Deleted user
by Deleted user

Gets an array of the function's argument list.

This function may be used in conjunction with func_get_arg() and func_num_args() to allow user-defined functions to accept variable-length argument lists.

More Questions Like This