看板
[ PHP ]
討論串[請益] 請問如何判斷大小寫?
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
似乎可以這樣做. 不過不知道有沒有比較好XD. <?php. function reverse_case($matches) {. return ctype_upper($matches[0]) ? strtolower($matches[0]) :. strtoupper($matches[0])
(還有145個字)
內容預覽:
我剛試著用strtoupper玩看看,不過感覺應該比較沒效率 :). <?php. $test = "This is a Test";. for($i = 0; $i< strlen($test); $i++). {. $c = $test[$i];. $test[$i] = ($c === str
(還有222個字)
首頁
上一頁
1
下一頁
尾頁