Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 836 Bytes

File metadata and controls

33 lines (21 loc) · 836 Bytes

Codeigniter Helper Multibytes Compatibilty

It's a simple helper for keep working your code if the server don't have installed multibyte functions library

The Problem

A PHP Error was encountered
Severity: Error
Message:  Call to undefined function mb_XXXXXX()

The Basic Solution

  • Copy multibytes_helper.php into the application/helpers directory

  • Edit application/config/autoload.php file and load multibytes helper

Supported Functions

  • mb_strtolower
  • mb_strtoupper
  • mb_strlen
  • mb_substr
  • mb_strpos

Requirements

  • Codeigniter installed

This is a very basic solution for keep running in production your software