Section 1

Preview this deck

arguments

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 (20)

Section 1

(20 cards)

arguments

Front

To call a function, you code the function name followed by a set of parentheses that contains a list of the required ________________.

Back

function

Front

If you create a function with a variable number of parameters, you need to use a PHP ________________ to get an array of the arguments that are passed to the function.

Back

original variable

Front

If you create a function that passes an argument by reference, the function can change the _______________ without using a return statement.

Back

closure

Front

A _______________ is a nested function that has access to the outer function's local variables.

Back

True

Front

T/F: When you call a function, you can pass arguments as values that correspond with the parameters of the function.

Back

func_get_args function

Front

All of the arguments that are passed to a function are available in an array that can be accessed by using the ________________.

Back

file

Front

A function library is just a/an ________________ that contains one or more functions.

Back

parameters

Front

When creating functions, you can include ______________ that are located inside parentheses after the function name.

Back

local

Front

If you declare a variable within a function, the variable has ________________ scope.

Back

callback

Front

Which function is passed as an argument to another function?

Back

global

Front

Within a function, you can use the ________________ keyword if you need to refer to a variable that's declared outside the function.

Back

scope

Front

In PHP, function name duplications are likely to occur because all functions have global _____________.

Back

namespace

Front

To avoid collisions of function names, you can create a/an ________________ for storing your functions.

Back

namespaces

Front

To avoid the duplication of function names, you can use ______________.

Back

return

Front

Within a function, you can end the function and pass the result back to the calling statement by coding a/an ________________ statement.

Back

equals

Front

To create a default value for a parameter in the parameter list of a function, you code a/an ________________ sign after the parameter name followed by the default value.

Back

value

Front

By default, all arguments for PHP functions are passed by ________________.

Back

by reference

Front

Which method of passing a variable allows the function to change the value of the variable?

Back

anonymous

Front

Which type of PHP function does not have a name?

Back

&

Front

Which character is used before an argument to specify that the variable is being passed to a PHP function by reference?

Back