- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
decbin() function in PHP
The decbin() function converts a decimal number to binary number.
Syntax
decbin(num)
Parameters
num − Specifies a number to be converted to binary.
Return
The decbin() function Returns a string representing the binary number of the decimal value.
Example
<?php echo decbin("3865"); ?>
Output
111100011001
Example
Let us see another example −
<?php echo decbin("99"); ?>
Output
1100011
- Related Articles
- PHP decbin() Function
- file_exists() function in PHP
- basename( ) function in PHP
- chgrp()function in PHP
- chmod() function in PHP
- chown() function in PHP
- clearstatcache() function in PHP
- copy() function in PHP
- delete() function in PHP
- dirname()function in PHP
- disk_free_space() function in PHP
- disk_total_space() function in PHP
- diskfreespace() function in PHP
- fclose() function in PHP
- feof() function in PHP

Advertisements