PHP Functions Which of the following are valid function names?1. function()2. €()3. .function()4. $function() Only 2 All of the mentioned None of the mentioned 3 and 4 Only 2 All of the mentioned None of the mentioned 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo str_pad("Salad", 5)." is good for health."; is good for health SaladSaladSaladSaladSalad Salad is good for health is good for health Salad SaladSaladSaladSaladSalad is good for health is good for health SaladSaladSaladSaladSalad Salad is good for health is good for health Salad SaladSaladSaladSaladSalad is good for health ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will happen in this function call?function calc($price, $tax) {$total = $price + $tax;}$pricetag = 15;$taxtag = 3;calc($pricetag, $taxtag); Call By Value Call By Reference Type Hinting Default Argument Value Call By Value Call By Reference Type Hinting Default Argument Value ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function TV($string){echo "my favourite TV show is ".$string;function b() {echo " I am here to spoil this code";}}a("Sherlock");b(); None of the mentioned Error I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code None of the mentioned Error I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$str = addslashes('What does "yolo" mean?');echo($str); What does /”yolo/” mean? What does ”yolo” mean? What does ”yolo” mean? What does ”yolo” mean? What does /”yolo/” mean? What does ”yolo” mean? What does ”yolo” mean? What does ”yolo” mean? ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$str = "Hello World";echo wordwrap($str,5,"n"); World HelloWorld Hello World Hell 0 Wo rld World HelloWorld Hello World Hell 0 Wo rld ANSWER DOWNLOAD EXAMIANS APP