public static Number::alphadecimalToInt($string = '00')
Decodes a sorting code back to an integer.
string $string: The alpha decimal value to convert
int The integer value.
\Drupal\Component\Utility\Number::intToAlphadecimal
public static function alphadecimalToInt($string = '00') { return (int) base_convert(substr($string, 1), 36, 10); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Number.php/function/Number::alphadecimalToInt/8.1.x