Practice mode / PHP Which of the following function returns the number of characters in a string variable? A Option A: count($variable) B Option B: len($variable) C Option C: strcount($variable) D Option D: strlen($variable) Correct answer D. strlen($variable) Show answer Report a problem How we write and check questions
Question 01 / PHP Which of the following function returns a text in title case from a variable? A Option A: ucwords($var) B Option B: upper($var) C Option C: toupper($var) D Option D: ucword($var) Correct answer A. ucwords($var) Show answer Open question
Question 02 / PHP Which of the following method sends input to a script via a URL? A Option A: Get B Option B: Post C Option C: Both D Option D: None Correct answer A. Get Show answer Open question
Question 03 / PHP When you need to obtain the ASCII value of a character which of the following function you apply in PHP? A Option A: chr( ); B Option B: asc( ); C Option C: ord( ); D Option D: val( ); Correct answer C. ord( ); Show answer Open question
Question 04 / PHP Which of the following variables is not a predefined variable? A Option A: $get B Option B: $ask C Option C: $request D Option D: $post Correct answer B. $ask Show answer Open question
Discussion