ParagonIE_Sodium_Core32_BLAKE2b::stringToSplFixedArray

Advertisement

Summery Summery

Convert a string into an SplFixedArray of integers

Syntax Syntax

ParagonIE_Sodium_Core32_BLAKE2b::stringToSplFixedArray( string $str = '' )

Parameters Parameters

$str

(Optional)

Default value: ''

Return Return

(SplFixedArray)

Source Source

File: wp-includes/sodium_compat/src/Core32/BLAKE2b.php

    public static function stringToSplFixedArray($str = '')
    {
        $values = unpack('C*', $str);
        return SplFixedArray::fromArray(array_values($values));
    }

Advertisement

Advertisement

Leave a Reply