Php Interview Question and Answers
25. |
Which function would you use to format date information? |
|
The date() function is used to format a date. |
|
|
26. |
How would you delete a cookie? |
|
You can delete a cookie by calling setcookie() with a date that has already passed. |
|
|
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. |
|
|
28. |
Which function would you use to start or resume a session? |
|
You can start a session with the session_start() function. |
|
|