PHP Functions What will be the output of the following PHP code ?function email(){$email = ’contact@examians.com’;$new = strstr($email, ‘@');echo $new;}email(); examians.com @examians.com contact@examians.com contact examians.com @examians.com contact@examians.com contact 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); Default Argument Value Call By Reference Call By Value Type Hinting Default Argument Value Call By Reference Call By Value Type Hinting 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";}}b(); I am here to spoil this code Error My favourite TV show isI am here to spoil this code None of the mentioned I am here to spoil this code Error My favourite TV show isI am here to spoil this code None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sum($num1, $num2) {$total = $num1 + $num2;echo "chr($total)";}$var1 = "sum";$var1(5, 44); 49 Sum 1 Error 49 Sum 1 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function a() {function b() {echo 'I am bb';}echo 'I am a';}b();a(); I am bb I am bI am a I am a Error Error I am bb I am bI am a I am a Error Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions strlen() returns the length of the string on success and . . . . if the string is empty. NULL Garbage value -1 0 NULL Garbage value -1 0 ANSWER DOWNLOAD EXAMIANS APP