Filters
Question type

Study Flashcards

The ____ argument of the array_splice() function indicates the name of the array you want to modify.


A) array_name
B) array_value
C) array_function
D) array_mod

Correct Answer

verifed

verified

The array_shift() function adds one or more elements to the beginning of an array.

Correct Answer

verifed

verified

The most commonly used array sorting functions are ____________________ and rsort() for indexed arrays.

Correct Answer

verifed

verified

The most common type of multidimensional array is a(n) ____ array.


A) multidimensional
B) two-dimensional
C) associative
D) indexed

Correct Answer

verifed

verified

____________________ function removes the first element from the beginning of an array.

Correct Answer

verifed

verified

array_shif...

View Answer

The array_key_exists() function determines whether a given____________________ or key exists.

Correct Answer

verifed

verified

You refer to the values in a multidimensional indexed array by including two sets of brackets, one which refers to the row and one which refers to the column.

Correct Answer

verifed

verified

PHP creates indexed arrays by default with a starting element of 0.

Correct Answer

verifed

verified

The array_push() function ____ one or more elements to the end of the array.


A) adds
B) deletes
C) moves
D) pushes

Correct Answer

verifed

verified

Use the array_keys() function to return an indexed array containing all the keys in an associative array.

Correct Answer

verifed

verified

The first set of indexes (or keys) in a ____________________ array determines the number of rows in the array and the second set of indexes (or keys) determines the number of columns in the array.

Correct Answer

verifed

verified

two-dimens...

View Answer

To remove an indexed array's elements, you need to run the array_values() function.

Correct Answer

verifed

verified

The ____ function lets you add or remove elements anywhere else in the array.


A) array_add()
B) array_split()
C) array_splice()
D) array_values()

Correct Answer

verifed

verified

You pass the unset() function the array name and the ____________________ of the element you want to remove.

Correct Answer

verifed

verified

The array_push() function adds one or more elements to the end of an array.

Correct Answer

verifed

verified

Use the array_slice() function to return or copy a portion of an array and assign it to another array.

Correct Answer

verifed

verified

The ____________________ function determines whether a given value exists in an array and returns the index or key of the first matching element if it exists or FALSE if it does not.

Correct Answer

verifed

verified

array_sear...

View Answer

With associative arrays, you can use any alphanumeric keys that you want for the array elements.

Correct Answer

verifed

verified

The array_splice() function adds or removes array elements located anywhere in an array.

Correct Answer

verifed

verified

To assign the first element of an associative array with a number other than zero (0), use the array operator ____________________ .

Correct Answer

verifed

verified

Showing 21 - 40 of 83

Related Exams

Show Answer