PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I know this is the wrong syntax for what I want to do, but I'm not sure how to write what I want to do. When I have $hex populated by a hexadecial such as #714e5f, I want to convert this to the index which is 7425631. doing...
Ambush Commander wrote:I'm sorry, but I'm going to say, "Don't use that code." There is absolutely no reason why you need to bust out eval in this case.
Alright, then hex2dec() is good enough. I'm just thinking out loud.