PHP Functions What will be the output of the following PHP code ?function addFunction($num1, $num2){$sum = $num1 + $num2;return $sum;}$return_value = addFunction(10, 20);echo "Returned value from the function : " .$return_value Error Returned value from the function : $return_value Returned value from the function : 30 Returned value from the function : Error Returned value from the function : $return_value Returned value from the function : 30 Returned value from the function : ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following PHP functions can be used to get the current memory usage? get_usage() get_memory_usage() get_memory_peak_usage() get_peak_usage() get_usage() get_memory_usage() get_memory_peak_usage() get_peak_usage() 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 be the output of the following PHP code?function foo($msg) {echo "$msg";}$var1 = "foo";$var1("will this work"); $msg Error Will this work 0 $msg Error Will this work 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following functions can be used to compress a string? gzcompress() compress() zip_compress() zip() gzcompress() compress() zip_compress() zip() ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Returning values from functions may include ..... Objects None of above Arrays Both A & B Objects None of above Arrays Both A & B ANSWER DOWNLOAD EXAMIANS APP