Which one of the following PHP functions can be used to build a function that accepts any number of arguments?
A.func_get_argv()
B.func_get_argc()
C.get_argv()
D.get_argc()
Answers
Answered by
0
B. func_get_argc()✔✔✔
Here is an example- function foo()
{ $args = func_get_args();
foreach ($args as $k => $v)
{ echo' arg'.($k+1).': $v '; } }
foo(); /* will print nothing */ foo(";Hello";); /*
will print Hello
*/ foo(";Hello";,";World";,";Bye";); /*
will print Hello World Bye */
By Choudhary21
Here is an example- function foo()
{ $args = func_get_args();
foreach ($args as $k => $v)
{ echo' arg'.($k+1).': $v '; } }
foo(); /* will print nothing */ foo(";Hello";); /*
will print Hello
*/ foo(";Hello";,";World";,";Bye";); /*
will print Hello World Bye */
By Choudhary21
Answered by
0
(^_-)(^_-)(^_-)(^_-)(^_-)(^_-)(^_-)(^_-)(^_-)
╭╼╾╼╾╼╾╼╾╼╾╼╾╼╾╮
┃ ┈┈ [_Hɪ Mᴀᴛᴇ_] ┈┈┈ ┃
╰╼╾╼╾╼╾╼╾╼╾╼╾╼╾╯
╔═══❁═❀═✪═❀═❁════╗
......Here You Go Ur Answer......
╚═══❁═❀═✪═❀═❁════╝
ıllıllıllıllıllıllı[ Your Answer ]ıllıllıllıllıllıllı
◆━━━━━◆♤◆━━━━━◆
☆Correct | ♤ | Option☆
◆━━━━━◆♤◆━━━━━◆
▂▃▅▇█▓▒░[ Hope It Helps You Dear ]░▒▓█▇▅▃▂
╭╼╾╼╾╼╾╼╾╼╾╼╾╼╾╮
┃ ┈┈ [_Hɪ Mᴀᴛᴇ_] ┈┈┈ ┃
╰╼╾╼╾╼╾╼╾╼╾╼╾╼╾╯
╔═══❁═❀═✪═❀═❁════╗
......Here You Go Ur Answer......
╚═══❁═❀═✪═❀═❁════╝
ıllıllıllıllıllıllı[ Your Answer ]ıllıllıllıllıllıllı
◆━━━━━◆♤◆━━━━━◆
☆Correct | ♤ | Option☆
◆━━━━━◆♤◆━━━━━◆
▂▃▅▇█▓▒░[ Hope It Helps You Dear ]░▒▓█▇▅▃▂
Similar questions