Skip to content

Binary

Class Binary

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

  • Full name: \ParagonIE\ConstantTime\Binary
  • This class is an Abstract class

Methods

safeStrlen

Safe string length

public static safeStrlen(string $str): int
  • This method is static.

Parameters:

Parameter Type Description
$str string

safeSubstr

Safe substring

public static safeSubstr(string $str, int $start, ?int $length = null): string
  • This method is static.

Parameters:

Parameter Type Description
$str string
$start int
$length ?int

Throws:



Automatically generated on 2025-03-18