PHP string handling

MCQsQuestion.com has 8 Question/Answers about Topic PHP string handling

Returns a string arguments with trilling blank space removed, is a behavior of

Returns a string arguments with trilling blank space removed, is a behavior of
  • A. starts ( ) function
  • B. chop ( ) function
  • C. rtrim ( ) function
  • D. Both B and C
  • Correct Answer: Option D

Case functions are used for

Case functions are used for
  • A. Changing lowercase to uppercase
  • B. Changing length of string
  • C. String replacement functions
  • D. Searching functions
  • Correct Answer: Option A

Which function is used for escaping quotation marks, double quotation marks, backslashes and Nulls from a string?

Which function is used for escaping quotation marks, double quotation marks, backslashes and Nulls from a string?
  • A. remove ( )
  • B. removeslash( )
  • C. addslashes ( )
  • D. None of them
  • Correct Answer: Option C

Which function is used for capitalizing first letter of a string?

Which function is used for capitalizing first letter of a string?
  • A. strtlower ( )
  • B. strtupper ( )
  • C. ucfirst ( )
  • D. lfirst ( )
  • Correct Answer: Option C

By first constructing a message string and then shipping it off to receiving program, is a way of communication between PHP and

By first constructing a message string and then shipping it off to receiving program, is a way of communication between PHP and
  • A. Database servers
  • B. LDAP servers
  • C. Sockets
  • D. All of them
  • Correct Answer: Option D

Literal string specified in PHP code by

Literal string specified in PHP code by
  • A. Single quotation mark
  • B. Double Quotation mark
  • C. Single dollar sign
  • D. Both A and B
  • Correct Answer: Option D

Dot . operator in strings are called as

Dot  .  operator in strings are called as
  • A. Assignment operator
  • B. Concatenation operator
  • C. Concatenating assignment operator
  • D. Literal operator
  • Correct Answer: Option B

Strstr ( ) function selects a substring by its

Strstr ( ) function selects a substring by its
  • A. Numerical value
  • B. Content
  • C. Position
  • D. None of them
  • Correct Answer: Option B