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