Suppose I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what's the problem?
Answer / Rohit Kumar Maddeshiya
In PHP, '0123' is treated as an octal number (base 8). If you want to assign the decimal value 123 to a variable, use '123'. To display an octal number, prefix it with a zero like: <?php $octal = 0123; echo $octal; ?>
| Is This Answer Correct ? | 0 Yes | 0 No |
How many themes can be installed in a single wordpress installation?
How to disable wordpress comment?
How is it possible to rename the wordpress folder?
How do I start a wordpress website?
How to display the current page title in wordpress?
Will changing wordpress theme affect content?
How do I compress a file?
Does wordpress use html?
How do I post a blog?
Will comparison of string "10″ and integer 11 work in PHP?
What are topic tags?
How do I add and remove categories in wordpress?