PHP

CRUD API

https://github.com/mevdschee/php-crud-api

Troubleshoot

strtolower() 中文字出亂碼

Problem

Coding
$str = "邊度有傷人士廁所 Abc";
echo strtolower($str);
Output
邚度有傷殘人士洗手間 abc

Solution

Coding
$str = "邊度有傷人士廁所 Abc";
echo mb_strtolower($str);
Output
邊度有傷人士廁所 abc

Regular Expression

Live Regex

https://www.phpliveregex.com/#tab-preg-replace

Tutorial

https://www.phpliveregex.com/learn/

Last updated