- Array ( [A] => 5 [Cat] => 2 [Dog] => 2 [Tiger] => 1 )
- Array ( [A] => 2 [Cat] => 2 [Dog] => 1 [Tiger] => 1 )
- Array ( [A] => 6 [Cat] => 1 [Dog] => 2 [Tiger] => 1 )
- Array ( [A] => 2 [Cat] => 1 [Dog] => 4 [Tiger] => 1 )
Answer: Option 1 The statement should be print_r(‘Hello World’) to print Hello world. Also if there is only one line then there is no requirement of a semicolon, but it...
1 Answers 1 viewsAnswer: Option 4 The array_replace() function replaces the values of the first array with the values from following arrays
1 Answers 1 viewsAnswer: Option 1 The array_push() function inserts one or more elements to the end of an array.
1 Answers 1 viewsAnswer: Option 1 The array_count_values() function counts all the values of an array.
1 Answers 1 viewsAnswer: Option 2 The array_shift() function removes the first element from an array, and returns the value of the removed element.
1 Answers 2 viewsAnswer: Option 1 The array_pop() function deletes the last element of an array.
1 Answers 1 viewsAnswer: Option 2 The stripos() function finds the position of the first occurrence of a string inside another string.
1 Answers 1 viewsAnswer: Option 3 This function is used to search an array for foods beginning with s.
1 Answers 1 viewsAnswer: Option 4 Coffee was not replaced because the preg_replace function is case sensitive. Therefore it treats coffee and Coffee differently.
1 Answers 1 viewsAnswer: Option 4 After all the switches were made,Max is directly behind the dog, James is alongside the dog on the left, Ruby is alongside the dog on the right,...
1 Answers 2 views