php functions explained -- func_num_args() and func_get_args()

1. func_num_args()
2. func_get_args()

These are two php functions used to find number of arguments passed to a function and get get argument values.

For more details visit php manual

why this functions?

These functions are used in function oveloading to find number of arguments passed and there values. .
Usual method of function overloading not works in php.

0 comments: