Multibyte PHP warnings

By aboyd Last update Apr 30, 2008 — Installed 130 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Script Summary:
On php.net, this flags manual entries that are not mb safe.

Script homepage

This script has no discussions.

start the discussion

This script has no reviews.

When you view the online manual at php.net, it will happily list functions for you to use that will mangle modern text. This is because many PHP functions are old and not aware of newer multi-byte text. So what this script does is to alter each manual page that has old, bad code -- providing a warning in a big yellow box, and giving you a link to the newer, better replacement function.

Such dangerous PHP functions include trim, ucwords, chunk_split, wordwrap, explode, split, strpos, mail, strlen, strtolower, the ereg* functions, and more.