Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)

Class Binary. More...

Static Public Member Functions

static safeStrlen (#[\SensitiveParameter] string $str)
 Safe string length.
 
static safeSubstr (#[\SensitiveParameter] string $str, int $start=0, ?int $length=null)
 Safe substring.
 

Detailed Description

Class Binary.

Binary string operators that don't choke on mbstring.func_overload

Member Function Documentation

◆ safeStrlen()

static Binary::safeStrlen ( # string $str[\SensitiveParameter])
static

Safe string length.

mbstring.func_overload

Parameters
string$str
Return values
int

◆ safeSubstr()

static Binary::safeSubstr ( # string $str[\SensitiveParameter],
int $start = 0,
?int $length = null )
static

Safe substring.

mbstring.func_overload

@staticvar boolean $exists

Parameters
string$str
int$start
?int$length
Return values
string
Exceptions
TypeError

The documentation for this class was generated from the following file: