If the code you want executed as part of a control structure consists of only a single line, you can omit the brackets. However, the habit of always using opening and closing brackets, regardless of structure length, is a good one.
date()
checkdate()
Q: – How would you break up a delimited string into an array of substrings?
explode() function
time() function
$num = 1;
while ($num <= 49) {
echo "$num<br>";
$num += 2;
}
Q: – Which PHP function accepts a timestamp and returns an associative array that represents the given date?
getdate() function
The variable $_SERVER[‘PHP_SELF’] holds the name of the script.
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: – payalgupta1325@yahool.com