Computer Science, asked by rafsf5248, 1 year ago

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 choudhary21
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
Answered by Anonymous
0
<b><font size = "4">(^_-)(^_-)(^_-)(^_-)(^_-)(^_-)(^_-)(^_-)(^_-)
╭╼╾╼╾╼╾╼╾╼╾╼╾╼╾╮
┃ ┈┈ [_Hɪ Mᴀᴛᴇ_] ┈┈┈ ┃
╰╼╾╼╾╼╾╼╾╼╾╼╾╼╾╯

╔═══❁═❀═✪═❀═❁════╗
......Here You Go Ur Answer......
╚═══❁═❀═✪═❀═❁════╝

ıllıllıllıllıllıllı[ Your Answer ]ıllıllıllıllıllıllı

◆━━━━━◆♤◆━━━━━◆
☆Correct | ♤ | Option☆
◆━━━━━◆♤◆━━━━━◆

\huge\boxed{\texttt{\fcolorbox{aqua}{grey}{B}}} {\bf{\underline{Answer}}}

<marquee>

▂▃▅▇█▓▒░[ Hope It Helps You Dear ]░▒▓█▇▅▃▂
Similar questions