How do you start a session in PHP?
-
A
session_begin()
-
B
session_start()
Correct answer
-
C
start_session()
-
D
begin_session()
Correct answer
B. session_start()
15 views
Explanation
The session_start() function must be called before any output is sent to the browser.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ