lcfirst_PHP lcfirst()函数与示例
生活随笔
收集整理的這篇文章主要介紹了
lcfirst_PHP lcfirst()函数与示例
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
lcfirst
PHP lcfirst()函數 (PHP lcfirst() function)
lcfirst() function is a string function, it is used to convert first character to lowercase. It accepts string and returns string with first lowercase character.
lcfirst()函數是一個字符串函數,用于將第一個字符轉換為小寫。 它接受字符串,并返回第一個小寫字符的字符串。
Syntax:
句法:
lcfirst(string);Example:
例:
Input: "THIS is MY computer!"Output: "tHIS is MY computer!"PHP code:
PHP代碼:
<?PHP$str = "THIS is MY computer!";echo (lcfirst($str)); ?>Output
輸出量
tHIS is MY computer!翻譯自: https://www.includehelp.com/php/lcfirst-function-with-example.aspx
lcfirst
總結
以上是生活随笔為你收集整理的lcfirst_PHP lcfirst()函数与示例的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ruby中!!_Ruby反向! 功能
- 下一篇: ruby推送示例_Ruby直到示例循环