
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
bindec() function in PHP
The bindec() function convert a binary number to decimal number.
Syntax
bindec(bin_str)
Parameters
bin_str − The binary string to convert
Return
The bindec() function returns decimal value of the specified string bin_str
Example
<?php echo bindec("1101"); ?>
Output
The output displays that the bindec() function returns a decimal value:
13
Advertisements