MCQ Hive stays free thanks to ads. Please disable your ad blocker for this site so content and features keep working.
Web Development
Server-Side & Architecture
Beginner
Q
In PHP, how do variables start, and what does == do compared with ===?
AWith $; == compares after type juggling, while === also requires the same type
BWith no prefix; == is strict
CWith #; === is assignment
DWith @; both are strict
Correct Answer:
A. With $; == compares after type juggling, while === also requires the same type
Explanation:
For example, "1" == 1 is true, but "1" === 1 is false.
ALSO KNOW (related points):
• Which of these languages traditionally runs on the server side? → PHP
• What is WordPress? → A content management system (CMS) written in PHP, typically using MySQL or MariaDB
• How is a space encoded in a URL? → %20 (or + in form-encoded query strings)
• What is the main purpose of minifying CSS and JavaScript? → To reduce file size by removing whitespace and comments and shortening names, which speeds up downloads