ApplicationHelper
class ApplicationHelper (View source)
Application Helper.
Methods
static boolean
isAscii(string $string)
Tests whether a string contains only 7bit ASCII bytes.
Details
at line line 31
static boolean
isAscii(string $string)
Tests whether a string contains only 7bit ASCII bytes.
You might use this to conditionally check whether a string needs handling as UTF-8 or not, potentially offering performance benefits by using the native PHP equivalent if it's just ASCII e.g.;