본문 바로가기

PHP/PHP7 예비학교

[PHP] 대문자 변환 - strtoupper() 와 소문자 변환 - strtolower()

대문자 변환


strtoupper ( string $string ) : string
<?php
$alpha = "abcdefghijklmnopqrstuvwsyz";

echo strtoupper($alpha);    // ABCDEFGHIJKLMNOPQRSTUVWSYZ
?>

 

소문자 변환


strtolower ( string $string ) : string
<?php
$alpha = "ABCDEFGHIJKLMNOPQRSTUVWSYZ";

echo strtolower($alpha);    // abcdefghijklmnopqrstuvwsyz
?>
반응형