logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem?


  • Correct Answer
  • PHP Interpreter treats numbers beginning with 0 as octal Look at the similar PHP interview questions for more numeric problems 


  • Technology problems


    Search Results


    • 1. What does a special set of tags do in PHP?
    • Discuss
    • 2. How do I find out the number of parameters passed into function?
    • Discuss
    • 3. Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?
    • Discuss
    • 4. So if md5( ) generates the most secure hash, why would you ever use the less secure crc32( ) and sha1( )?
    • Discuss
    • 5. What?s the difference between accessing a class method via -> and via ::?
    • Discuss
    • 6. If the variable $a is equal to 5 and variable $b is equal to character a, what?s the value of $$b?
    • Discuss
    • 7. What?s the special meaning of __sleep and __wakeup?
    • Discuss
    • 8. What is the difference between characters 23 and x23?
    • Discuss
    • 9. What?s the difference between md5( ), crc32( ) and sha1( ) crypto on PHP?
    • Discuss
    • 10. What?s the difference between include and require?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment