課程
/后端開發
/PHP
/PHP入門篇
怎樣把'hoPe YOU a day!'轉為Hope you a day!
2017-06-17
源自:PHP入門篇 6-2
正在回答
用strtoupper函數
<?php
$string = "hoPe YOU a day";
$lower = strtolower(substr ($string,1,13));
$upper = strtoupper(substr ($string,0,1));
echo?$upper.$lower;
?>
qq_寺之臘侯_0 提問者
舉報
PHP入門教程輕松學習,行業大牛幫您快速掌握PHP編程基礎知識。
1 回答GOD的大小寫
2 回答注要大小寫
2 回答小寫大寫沒分別
4 回答大神救命?。?!1數組array(2,52,34,54,3);請把數組轉換成以從小到大的順序排序.
1 回答不能輸出英文
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-06-17
用strtoupper函數
<?php
$string = "hoPe YOU a day";
$lower = strtolower(substr ($string,1,13));
$upper = strtoupper(substr ($string,0,1));
echo?$upper.$lower;
?>