Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ Both 2 and 4 2, 3 and 4 Only 2 1, 3 and 4 Both 2 and 4 2, 3 and 4 Only 2 1, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following php code?$num = "1";$num1 = "2";print $num+$num1; 12 1+2 Error 3 12 1+2 Error 3 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP The value of __NAMESPACE__ is a string that contains the current namespace name. In global, un-namespaced code, it contains . . . . . . an empty string 0 NULL gibberish value an empty string 0 NULL gibberish value ANSWER DOWNLOAD EXAMIANS APP
Basic PHP If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? 12 1 5 Error 12 1 5 Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the below statements is equivalent to $add += $add ? $add = $add +$add $add = $add $add = $add + 1 $add = $add + $add + 1 $add = $add +$add $add = $add $add = $add + 1 $add = $add + $add + 1 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP When a simple data type is casted to an array, an array is created with the original value in the first element. False True False True ANSWER DOWNLOAD EXAMIANS APP