Which PHP function converts all characters of a string to lower case?
Correct answer B. strtolower()
Topic / 29 questions
PHP MCQs test knowledge of PHP, the server-side scripting language widely used to build websites, covering its history, string functions, predefined variables and form handling with GET and POST. They help computer science students, web developers and IT job applicants. Every question shows its correct answer instantly, so you can check your knowledge quickly.
Correct answer B. strtolower()
Correct answer D. 3
Correct answer B. new
Correct answer A. require
Correct answer D. ababab
Correct answer A. implode()
Correct answer B. explode()
Correct answer D. 8
Correct answer A. session_start()
Correct answer C. foreach
Correct answer C. array_push()
Correct answer C. isset()
Correct answer C. 1
Correct answer C. ===
Correct answer A. define()
Correct answer D. $_POST
Correct answer B. count()
Correct answer D. . (dot)
Correct answer A. $
Correct answer D. strlen($variable)
This short set covers PHP basics. Questions ask who created PHP, Rasmus Lerdorf, and what the name stands for today, the recursive PHP: Hypertext Preprocessor. You will also find items on PHP as a server-side scripting language, string functions such as strlen(), which returns the length of a string, and ucwords(), which capitalises the first letter of each word. Other questions cover predefined variables such as $_GET and $_POST, and the GET method, which sends form data through the URL. These are common in web development interviews and IT job tests.
Pakistan
India
Bangladesh
PHP now stands for PHP: Hypertext Preprocessor, a recursive acronym. It originally meant Personal Home Page when Rasmus Lerdorf created it in the mid-1990s. PHP runs on the web server and generates HTML that is sent to the browser.
GET sends form data as part of the URL, so it is visible, limited in length and suitable for searches or bookmarks. POST sends data in the body of the HTTP request, so it is not shown in the URL and suits passwords, file uploads and larger data. PHP reads them through $_GET and $_POST.
Last reviewed October 2026