Voting

: two minus one?
(Example: nine)

The Note You're Voting On

Anonymous
7 years ago
Be aware of a slight inconsistency between substr and mb_substr

mb_substr("", 4); returns empty string

substr("", 4); returns boolean false

tested in PHP 7.1.11 (Fedora 26) and PHP 5.4.16 (CentOS 7.4)

<< Back to user notes page

To Top