Decbin Function in PHP

Decbin Function in PHP. A Php program to print the number using decbin. In this program, we can print the number using decbin for beginners in PHP. In PHP, the decbin() method returns a string that contains a binary version of the supplied decimal number argument. The term decbin refers to the conversion of decimal to binary. It is the decimal number that you wish to convert to binary form.

<?php 
echo (decbin(29)."<br/>");
echo (decbin(3)."<br/>");
echo (decbin(5)."<br/>");
?>

 

Output:

11101

11

101

Break Statement in PHP

Line Break is a component. The <br> HTML element is used to introduce a line break into text (carriage-return). It comes in helpful when writing a poem or an address where line separation is critical. The <br/> element in an HTML page represents a line break. Similarly, the <br/> element is useful when writing poems and addresses. This <br/> tag is used to insert a line break or carriage return without leaving the parent element, such as a paragraph.

Decbin() in Php

In PHP, the decbin() method returns a string containing a binary version of the supplied decimal number argument. Decbin is an abbreviation for decimal to binary. It is the decimal number that you wish to convert to binary form.