ကျနော်တို့အနေဖြင့် strtolower ကို အသုံးပြုပြီး စာလုံးအားလုံးကို စာလုံးအသေးအဖြစ် ပြောင်းလဲနိုင်သည်။ ဥပမာကို အောက်တွင် ဖော်ပြထားသည်။
<?php
$string = 'I am ThEt NainG WiN!';
$string_low = strtolower($string);
echo $string_low;
?>
ကျနော်တို့အနေဖြင့် strtoupper ကို အသုံးပြုပြီးတော့လည်း စာလုံးအာလုံးကို စာလုံးအကြီးအဖြစ် ပြောင်းလဲနိုင်သည်။ ဥပမာကို အောက်တွင်ဖော်ပြထားသည်။
<?php
$string = 'I am ThEt NAInG win!';
$string_up = strtoupper($string);
echo $string_up;
?>
What do you think?
Send us feedback!