PHP Learn Simpli September 2, 2019 no Comments 1. Interface helps in the following? Multiple inheritance Single inheritance Abstraction Multilevel inheritance None 2. What is the use of break method in PHP? Exit from the function Halt the remaining part Exit from the loop Stop execution None 3. Which one is true related with Header()? All of the above Header is used to load the header part Header is used to clear the cache Header is used to redirect None 4. Interfaces can have private access modifier for abstract method? False True None 5. What will be the output of the code snippet? $a = '90'; $b = &$a; $b = "2$b"; echo $b; 180 Generates an error 2 290 None 6. What is the use of explode function in PHP? Converts array to string Converts string to array None 7. Which one will print true? var_dump(0123 == 123); var_dump('0123' == 123); var_dump('0123' === 123); None 2 3 1 None 8. What will be the output of the code snippet? <?php $A = 5; echo $A+++$A++; 12 11 10 8 None 9. Which of the following statement is wrong related to abstract class? Can not support multiple inheritance Can have abstract methods Can support multiple inheritance Can have concrete methods None 10. Which function is used to remove duplicate values from an array in PHP? array_values() array_keys() array_unique() None Time's up