- You like dogs. I hate dogs. We should marry.
- Array([0]=>You like dogs. I hate dogs. We should marry.)
- Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.)
- Error
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 1 The array_count_values() function counts all the values of an array and array_combine() combines arrays.
1 Answers 6 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 explode() function breaks a string into 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 4 The split() function divides a string into various elements, with the boundaries of each element based on the occurrence of a defined pattern within the string.
1 Answers 1 views