str_compare
例:str_compare(“abcdee”,“abcdef”); → -1
- 機能:
- 両文字列の同一比較結果(大小文字区別)を返す(1:A>B,0:A=B,-1:A<B)
- 書式:
- str_compare(str_A, str_B)
- 解説:
- 文字列str_Aとstr_Bの比較結果を返します。
戻り値: 1: str_A > str_B
0: str_A = str_B
-1: str_A < str_B
str_A, str_B ・・・・・・・・・・・・・・・ 同一比較をしたい両文字列
return |