DEV Code Studio
Portfolio demo — fully interactive
English
العربية
Request a site like this →
◆
BrightPath Academy
Courses
My learning
Quiz
Start learning
☰
Placement quiz
Four questions to place you on the right track. Graded instantly.
1. Which PHP function safely escapes output for HTML?
htmlspecialchars
strip_tags
urlencode
2. What does PDO use to prevent SQL injection?
String concatenation
Prepared statements
Comments
3. Which HTTP method should change server state?
GET
HEAD
POST
4. What is a "session" used for?
Persisting per-visitor state
Compressing CSS
Caching DNS
Submit answers