PHP / MySQL

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley

Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

Convert Number Base

Tuesday April 17, 2007
Yesterday's blog talked about how to read and write binary. Today, we will look at an easier way to do this. You can use the base_convert () PHP function to translate any base to any other base, so you can quickly decode binary, hex, etc. This function has three variables. They are the number, it's base, and the base you are converting to. It then returns the number in the base you choose.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore PHP / MySQL

About.com Special Features

PHP / MySQL

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.