Converting Bases

Here’s an assortment of code to convert between different base systems. I have provided code in both Visual Basic and PHP. The original articles were quite old (written in 2002!) so this code may be quite outdated, but it still works.