🆕 https://mnya.tw/cc/word/1411.html
【作者:萌芽站長;💻萌芽綜合天地;🌐網站技術 , ⚙️PHP】
在開始寫 PHP 時為了限制 HTML 表單輸入的字數,就用了 strlen() 來判斷字數,結果後來才發現判斷出來的並不是真正的字數,而是該字串的 Bytes(位元組)...
#strlen #mb_strlen #直接判斷 #加入編碼判斷 #判斷字串長度函數 #判斷字串長度 #字串長度 #函數 #PHP #網站技術

Comments

Be the first to add a comment