1. What is the correct way to open the file 'time.txt' as readable?
2. Can I Use Proxy In Php Curl
3. Correct way to include the file 'time.inc'?
4. Include files must have the file extension '.inc'
5. Which array function checks if the specified key exists in the array?
6. Which of the following is not a boolean false
7. Which function split the string and return the array?
8. Which PCRE regular expression will match the string
9. What is not a PHP type?
10. How to declare an interface?
11. Which functions allows you to store session data in a database?
12. Best way to iterate and modify every element of an array using PHP 5?
13. Which function compare the substrings of the parameters?
14. Which is not a magic method?
15. Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use?
16. Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays). Of course, these key methods can be combined as well.
17. Which datatype does not supported by PHP?
18. Difference between characters \034 and \x34?
19. What would you use a trait for?
20. How would you start a session?
21. Which type cast is not correct? 1
22. Which statements is NOT correct for PHP?
23. In your PHP application you need to open a file. You want the application to issue a warning and continue execution, in case the file is not found. The ideal function to be used is:
24. Which is used to maintain the value of a variable over different pages?
25. Does PHP 5 support exceptions?
26. Which is a PHP resource?
27. Which is not supported in PHP5?
PHP 5 MCQs | Topic-wise