Skip to content

Category Archives: Quizzes

Which of below functions is used to sort an array according to its value? (A) unshift() (B) asort() (C) arsort() (D) compact() Answer: (B) Explanation:… Read More
What is the output of the below code snippets: <?php $input="gfg mcq quiz sets"; echo ucwords($input); ?> (A) Gfg Mcq Quiz Sets (B) gfg MCq… Read More
Which of the below method is used to send the given data using URL? (A) Post (B) Send (C) Get (D) Both A and D… Read More
If we filter many variables into one then which of the following filter is used? (A) filter_var_array() (B) filter_var() (C) filter_input (D) filter_input_array Answer: (A)… Read More
What is the correct output of the below code snippets? <?php $number = "123456"; if (!filter_var($number, FILTER_VALIDATE_INT)) echo("Valid"); else echo("Not Valid"); ?> (A) Valid (B)… Read More
Which of the following function is used to reading the string variable? (A) file_contents() (B) file_get_contents() (C) file_content_get() (D) fget_content() Answer: (B) Explanation: The file_get_contents()… Read More
Which of the following is true about the number of filtering present in Php? (A) 1 (B) 2 (C) 3 (D) All of the above… Read More
In the PHP the filesize() function returns which of the following size? (A) bits (B) bytes (C) kilobytes (D) gigabytes Answer: (B) Explanation: PHP the… Read More
In the array the pointer moves to the previous array position, which of the following function is true? (A) last() (B) before() (C) prev() (D)… Read More
Which built-in function in the PHP adds value to the end of the array? (A) this_array() (B) is_array() (C) while_array() (D) are_array() Answer: (B) Explanation:… Read More
Which of the below data is termed as the external data in PHP? (A) Cookies (B) Web service data (C) Server variables (D) All of… Read More
In PHP if we put the element in the new line then which of the correct symbol is used? (A) \l (B) \n (C) /r… Read More
Which inbuilt function in PHP is used to sort the element in Descending order? (A) sort() (B) asort() (C) dsort() (D) rsort() Answer: (D) Explanation:… Read More
Which of the following is accept any no of the parameter in php? (A) func_get_argv() (B) get_argv() (C) func_get_args() (D) get_argc() Answer: (C) Explanation: For… Read More
What is the output of the following code? <?php $gfg = "DSA"; $input = $gfg[2]; echo "$input"; ?> (A) D (B) S (C) A (D)… Read More

Start Your Coding Journey Now!