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 Default Argument Value Type Hinting Call By Reference Call By Value Default Argument Value Type Hinting Call By Reference ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function start($string){if ($string < 45)return 20;elsereturn 40;}$t = start(90);if ($t < 20){echo "Have a good day!";}else{echo "Have a good night!";} None of the mentioned Have a good day! Have a good night! ERROR None of the mentioned Have a good day! Have a good night! ERROR 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
PHP Functions What will be the output of the following PHP code ?function email(){$email = ’contact@examians.com’;$new = strstr($email, ‘@');echo $new;}email(); contact@examians.com examians.com contact @examians.com contact@examians.com examians.com contact @examians.com ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function uppercase($string) {echo ucwords($string);}$wow = "uppercase";$wow("Time to live king size"); TIME TO LIVE KING SIZE Uppercase Time To Live King Size Time to live king size TIME TO LIVE KING SIZE Uppercase Time To Live King Size Time to live king size ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function a() {function b() {echo 'I am b';}echo 'I am a';}a();a(); I am bI am a I am a Error Error I am b I am bI am a I am a Error Error I am b ANSWER DOWNLOAD EXAMIANS APP