PHP Interview Questions & Answers part 5
The statement will output the string "string".
Q: – Which function contains the current session's ID?
If cookies are not available, the SID constant contains a name/value pair that can be incorporated in a query string. It will pass the session ID from script request to script request.
They are all expressions because they all resolve to values.
Q: – What function do you use to open a file for reading or writing?
You can use the require() or include() statement to incorporate PHP files into the current document. You could also use include_once() or require_once().
5 < 2
What data type will the returned value be?
The expression will resolve to false, which is a Boolean value.
Submitted By:-Payal Gupta Email-ID: – firstname.lastname@example.org