What is the difference between characters 23 and x23 in PHP?

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!

Moderator: General Moderators

Post Reply
phpdevelopers
Forum Newbie
Posts: 7
Joined: Wed May 16, 2012 2:17 am

What is the difference between characters 23 and x23 in PHP?

Post by phpdevelopers »

What is the difference between characters 23 and x23 in PHP?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: What is the difference between characters 23 and x23 in

Post by social_experiment »

The answers i found indicate that '23' is an octal value while 'x23' is a hexadecimal value. that's my understanding of it atleast
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply