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