WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Util::stringToIntArray() public WP 1.0

Turn a string into an array of integers

{} It's a method of the class: ParagonIE_Sodium_Core_Util{}

No Hooks.


Array. int>


$result = ParagonIE_Sodium_Core_Util::stringToIntArray( $string );
$string(string) (required)

Code of ParagonIE_Sodium_Core_Util::stringToIntArray() WP 5.8.2

public static function stringToIntArray($string)
    if (!is_string($string)) {
        throw new TypeError('String expected');
     * @var array<int, int>
    $values = array_values(
        unpack('C*', $string)
    return $values;