Podcast
Questions and Answers
Match the following array elements with their position:
Match the following array elements with their position:
Element at position 7 = Value at position 7 Element at position 0 = Value at position 0 Element at position 4 = Value at position 4 Element at position 9 = Value at position 9
Match the programming construct with its usage:
Match the programming construct with its usage:
'for' statement = Writing all array values 'if' statement = Checking a condition 'switch' statement = Selecting a case based on value 'while' statement = Repeating a block of code
Match the array function with its purpose:
Match the array function with its purpose:
count($variable) = Finding the length of an array sort($array) = Sorting elements of an array array_push($array, $element) = Adding an element to the end of an array array_pop($array) = Removing and returning the last element of an array