Section 1

Preview this deck

An example of an array-related PHP function is foreach().

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

7 years ago

Date created

Mar 1, 2020

Cards (19)

Section 1

(19 cards)

An example of an array-related PHP function is foreach().

Front

true

Back

The built-in PHP function to use for sending e-mail to your site visitors after they fill out one of your forms is

Front

mail()

Back

Which PHP function would you use to break up a delimited string into an array of substrings?

Front

explode()

Back

In a call to the fopen() function, the input parameter to indicate we will be appending information to the file must have the value

Front

'a'

Back

What function would you use to extract a substring from a string in PHP?

Front

substr()

Back

If a function does not require an argument, you can omit the parentheses in the function call.

Front

false

Back

You can create your own function in PHP using the function statement.

Front

true

Back

What would the following code fragment print to the browser? $number = 50; function tenTimes() { global $number; $number = $number * 10; } tenTimes(); echo $number;

Front

500

Back

PHP has hundreds of built-in functions such as print().

Front

true

Back

What will display as a result of the following PHP code snippet? $var = 'a'; $VAR = 'b'; echo "$var$VAR";

Front

ab

Back

The built-in PHP function to use for string replacement is

Front

str_replace()

Back

The built-in PHP function to use for opening a file when your script wants to store some information on the server is

Front

(-NOT, file_open() -)

Back

Which PHP functions gives you all the information you need about the current date and time?

Front

time()

Back

Which PHP function accepts a timestamp and returns an associative array that represents the given date?

Front

getdate()

Back

What displays as a result of the following PHP code snippet? $str = 'a\\b
'; echo $str;

Front

(-NOT, ab(newline) OR a\\b
OR ab(newline) -)

Back

The built-in PHP function to use for writing to an open file when your script wants to store some information in a file on the server is

Front

fwrite()

Back

The PHP printf() function requires a string argument.

Front

true

Back

What does the PHP function die() do?

Front

Displays an error message and terminates execution of the PHP program segment.

Back

Which PHP function would you use to format date information?

Front

date()

Back