문자열 알파벳 대문자 반환과 소문자 반환 - string strtoupper ( string $string ), string strtolower ( string $str )
2014. 1. 13. 18:49
- <?php
- $invalue = "watermelon";
- $outvalue = strtoupper($invalue);
- echo $outvalue."<br>\n";
- // WATERMELON
- echo strtolower($outvalue);
- // watermelon
- ?>
--------------------------------------------------------------------------------------------
string strtoupper ( string $string )
4. 라인
$string문자열의 모든 알파벳을 대문자로 반환합니다.
string strtolower ( string $str )
7. 라인
$string문자열의 모든 알파벳을 소문자로 반환합니다.