+1 vote
in PHP by
Which of the following is the correct use of the strcmp() function in PHP?

a) The strcmp() function is used to compare the strings excluding case

b) The strcmp() function is used to compare the uppercase strings

c) The strcmp() function is used to compare the lowercase strings

d) The strcmp() function is used to compare the strings including case

1 Answer

0 votes
by
d) The strcmp() function is used to compare the strings including case

Description: The strcmp() is a string comparison function in PHP. It is a built-in function of PHP, which is case sensitive, which means it treats capital and the small case separately. It is used to compare two strings from each other. This function compares two strings and tells whether a string is greater, less, or equal to another string.

Related questions

+1 vote
asked May 13, 2022 in PHP by john ganales
+1 vote
asked May 13, 2022 in PHP by john ganales
...