PHP » PYTHON |
login |
register |
about
|
int(binary_string, 2) bindec(PHP 4, PHP 5) bindec — Binary to decimal DescriptionReturns the decimal equivalent of the binary number represented by the binary_string argument. bindec() converts a binary number to an integer or, if needed for size reasons, float. Parameters
Return ValuesThe decimal value of binary_string Changelog
Examples
Example #1 bindec() example
<?php The above example will output: 51 51 7
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|