Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | PHP Quiz | Set 1 | Question 14

  • Last Updated : 20 Sep, 2021

If you handle a session in PHP which of the below is the correct syntax for that?
(A) session_start() function
(C) isset() function
(D) session_destroy() function

Answer: (A)

Explanation: The first step is to start up a session. After a session is started, session variables can be created to store information. The PHP session_start() function is used to begin a new session. It also creates a new session ID for the user. For handling sessions() in PHP the correct syntax is session_start() function.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!