for ($num = 1; $num <= 49; $num += 2) {
echo "$num<br>";
}
array_merge()
Q: –What function would you use to extract a substring from a string?
The substr() function extracts and returns a substring.
Q: – If a function doesn't require an argument, you can omit the parentheses in the function call. True or False?
False
Q: – How do you return a value from a function?
Use the return keyword.
Q: – What is a Function?
A function is a self-contained block of code that can be called by your scripts.
Q: – What construct can you use to define an array?
array()
The ltrim() function removes white space from the start of a string.
No. You must call functions outside quotation marks.
Submitted By:-Payal Gupta Email-ID: – payalgupta1325@yahool.com