The function func_num_args() is used to give the number of parameters passed into a function. Post navigation How is the ternary conditional operator used in PHP? If the variable $var1 is set to 10 and the $var2 is set to the character var1, what’s the value of $$var2?