프로그래밍/웹
php startsWith, endWith
drinkcode
2018. 2. 11. 20:20
startsWith("abcdef", "ab") -> true
startsWith("abcdef", "cd") -> false
startsWith("abcdef", "ef") -> false
startsWith("abcdef", "") -> true
startsWith("", "abcdef") -> false
endsWith("abcdef", "ab") -> false
endsWith("abcdef", "cd") -> false
endsWith("abcdef", "ef") -> true
e
ndsWith("abcdef", "") -> true
endsWith("", "abcdef") -> false