Edu
Hub
Courses
AI Tools
Leaderboard
Login/Register
AR
Abdullah Rashid
abdullah@example.com
Navigation
📚
Courses
🏆
Leaderboard
✨
AI Tools
←
PHP Medium Quiz
⏱
15:00
Quit
0 / 5 answered
0%
PHP Medium Quiz
10 questions · Medium difficulty · 00:05:00 min
🔥 In Progress
Question 1
What does the 'static' keyword do in a PHP function?
Makes the variable global
Retains the variable's value between function calls
Declares a constant
Prevents the function from being called outside the class
Question 2
Which superglobal variable is used to collect form data after submitting an HTML form with method='post'?
$_SERVER
$_REQUEST
$_POST
$_GET
Question 3
What is the output of 'echo 4 + "5";' in PHP?
9
4
45
Error
Question 4
Which function is used to include a file only once in PHP?
include()
include_once()
require_once()
require()
Question 5
How do you start a session in PHP?
start_session()
session_init()
session_start()
new Session()
✅ Answered:
0
⬜ Unanswered:
8
📊
20%
done
Submit Answers →