Number::alphadecimalToInt

public static Number::alphadecimalToInt($string = '00')

Decodes a sorting code back to an integer.

Parameters

string $string: The alpha decimal value to convert

Return value

int The integer value.

See also

\Drupal\Component\Utility\Number::intToAlphadecimal

File

core/lib/Drupal/Component/Utility/Number.php, line 97

Class

Number
Provides helper methods for manipulating numbers.

Namespace

Drupal\Component\Utility

Code

public static function alphadecimalToInt($string = '00') {
  return (int) base_convert(substr($string, 1), 36, 10);
}
doc_Drupal
2016-10-29 09:32:23
Comments
Leave a Comment

Please login to continue.