Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (23 sloc) 542 Bytes

Yalesov\Utf8

Build Status

A collection of utf8-related functions.

Installation

Composer:

{
  "require": {
    "yalesov/utf8": "2.*"
  }
}

Usage

Utf-8 version of chr:

use Yalesov\Utf8\Utf8;
$char = Utf8::uchr($num);

Utf-8 version of ord:

use Yalesov\Utf8\Utf8;
$num = Utf8::uord($char);