how to compare two strings in PHP if condition?

Question : How to compare two strings in PHP? :- PHP strcmp() You can use the PHP strcmp() function to simply compare two strings. This Internal (built-in) functions takes two strings user_data_user_data_string1 and user_data_user_data_string2 as parameters. The strcmp() Internal (built-in) functions returns < 0 if user_data_user_data_string1 is less than user_data_user_data_string2; returns > 0 if user_data_user_data_string1 … Read more how to compare two strings in PHP if condition?