I just want to make a function like array_merge ( array $array1 [, array $... ] )
or simple function like myfunc($st1, $st2, $st3, $st4, $st5, etc)
function make_my_merge($) {
..... operation to be performed ......
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
func_get_args()to access all arguments (as an array) passed to the function. Additionally, you can usefunc_num_args()to get a count of all arguments passed in.Codepad: http://codepad.org/Dk7MD18I