PHP

CRUD API

https://github.com/mevdschee/php-crud-apiarrow-up-right

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-replacearrow-up-right

Tutorial

https://www.phpliveregex.com/learn/arrow-up-right

Last updated