Php Interview Question and Answers

25. Which function would you use to format date information?
  The date() function is used to format a date.
 
Your Name Your Email-ID
Your Answer
26. How would you delete a cookie?
  You can delete a cookie by calling setcookie() with a date that has already passed.
 
Your Name Your Email-ID
Your Answer
27. What does the SID constant return?
  If cookies are not available, the SID constant contains a name/value pair that can be incorporated in a query string. This will pass the session ID from script request to script request.
 
Your Name Your Email-ID
Your Answer
28. Which function would you use to start or resume a session?
  You can start a session with the session_start() function.
 
Your Name Your Email-ID
Your Answer
12345678910 Page 7 of 10