Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert 255 to a binary representation

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
if I have a number 255, is there a php function to output the binary string of 11111111?

thanks,
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
Congratulations!
 
Sorry, I just found that, is there a way to convert octal to decimal?

Thanks,
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
Congratulations!
 
like 11111111 = 255?

Thanks,
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
Congratulations!
 
Try the PHP online manual.

If you found that function, scrolling down to the "See Also" section, it offers the inverse of the decbin() function: the bindec() function; amongst other useful things.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top