What are func_num_args and func_get_args?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saily
    New Member
    • Jul 2007
    • 1

    What are func_num_args and func_get_args?

    where can this "func_num_args( )" and "func_get_args( )" be used ?
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Changed thread title to better describe the problem (did you know that threads whose titles consist of only one word, such as, 'function' actually get FEWER responses?).

    Heya, saily. Welcome to TSDN!

    Have a look at the PHP manual for some excellent examples of these functions' usage.

    Comment

    • kovik
      Recognized Expert Top Contributor
      • Jun 2007
      • 1044

      #3
      The best time to use them is when you're making a class or object of some sort that is set up in the fashion of an array, but you don't want to actually send an array as an argument.

      Comment

      Working...