mostafatalebi Posted January 7, 2013 Share Posted January 7, 2013 (edited) Hello How I can write functions in PHP which could have any number of arguments, and not a limited number, or a fixed/predefined number. for instance: function doCheck ($name, $lastname) { } // the above function has two arguments and therefore is not dynamic. I want a function without any predefined number of argument and yet be able to receive variety of arguments (of course based on its functionality.) Thanks in advance Edited January 7, 2013 by mostafatalebi Quote Link to comment Share on other sites More sharing options...
DavidAM Posted January 7, 2013 Share Posted January 7, 2013 func_get_args Quote Link to comment Share on other sites More sharing options...
mostafatalebi Posted January 7, 2013 Author Share Posted January 7, 2013 Thanks a million Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.