Summery Summery
Turn a string into an array of integers
Syntax Syntax
Parameters Parameters
- $string
-
(Required)
Return Return
(array<int,) int>
Source Source
File: wp-includes/sodium_compat/src/Core/Util.php
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; }