웹프로그래밍/PHP
[php] strtolower / strtoupper 소문자 대문자 변경하기
타자치는 고선생
2022. 11. 21. 15:00
728x90
반응형
php strtolower 함수를 통해 문자열 전부를 알파벳 소문자로 변경이 가능하다.
<?php
$strtolower = strtolower("a테B스C트d입E니fG다.");
echo $strtolower;
?>
결과 : a테b스c트d입e니fg다.
더보기
참고 :
https://www.php.net/manual/en/function.strtolower.php
PHP: strtolower - Manual
the strtolower version to support most amount of languages including russian, french and so on: <!--?php function strtolower_utf8($string){ $convert_to = array( "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "
www.php.net
php strtoupper 함수를 통해 문자열 전부를 알파벳 대문자로 변경이 가능하다.
<?php
$strtoupper = strtoupper("a테B스C트d입E니fG다.");
echo $strtoupper;
?>
결과 : A테B스C트D입E니FG다.
더보기
참고 :
https://www.php.net/manual/en/function.strtoupper.php
PHP: strtoupper - Manual
perfect solutions for turkish utf-8 (including i I conversations): <!--?php function strtolowertr($metin){ return mb_convert_case(str_replace('I','ı',$metin), MB_CASE_LOWER, "UTF-8"); } function strtouppertr($metin){ return mb_convert_case(str
www.php.net
728x90
반응형