adplus-dvertising
frame-decoration

Question

Which function is used for replacing whole string with an alternate string?

a.

Strstr ( )

b.

Strrpos ( )

c.

Str_replace ( )

d.

Replace ( )

Posted under PHP

Answer: (c).Str_replace ( )

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which function is used for replacing whole string with an alternate string?

Similar Questions

Discover Related MCQs

Q. Stristr ( ) is identical to Strstr ( ) except that

Q. Replacing string from left hand side is known as

Q. A function that capitalizes first letter of each word in a string, is a

Q. Case functions are used for

Q. Chop ( ), ltrim ( ) and trim functions are used for

Q. Which function is identical to Strstr ( )?

Q. Selecting a substring by numerical position is property of

Q. In substring selection which function modifies a string?

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

Q. In addition to single and double quoted strings PHP offers another way to specify a string which is called as

Q. Which function returns resulting string as its value?

Q. Which two functions are used for replacing a string with another string?

Q. Which string type is interpreted as a number of sequences and automatically interpolates variable values?

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

Q. In substring selection what's mean of Slicing?

Q. Concatenating operator is used for

Q. All these characters in a string \, ?, *, \, &Hat, $, ] are escaped by

Q. Returns a string argument with both leading and trailing whitespace removed, is a behavior of

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

Q. For creating pages that contain HTML forms and have multiline strings we can use