Sr. PHP Programmer Question:
Download Questions PDF

How will you start a session in PHP?

Answer:

A PHP session is easily started by making a call to the session_start() function.This function first checks if a session is already started and if none is started then it starts one. It is recommended to put the call to session_start() at the beginning of the page.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How will you check if a file exists or not using php?How will you open a file in readonly mode?