www.webdeveloper.com
Results 1 to 6 of 6

Thread: Quick String Evaluation Question

  1. #1
    Join Date
    Sep 2008
    Posts
    260

    Quick String Evaluation Question

    Can anyone lead me to some tutorials that teaches me how to evaluate expressions like this?

    PHP Code:

    $c 
    0xFF;

    echo 
    $c
    After all these years, I never really paid attention to this until now when I have to take a PHP test.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,536
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Sep 2008
    Posts
    260
    Quote Originally Posted by NogDog View Post
    Thanks NogDog..

  4. #4
    Join Date
    Jul 2009
    Location
    My house, sitting at the computer. Duh!
    Posts
    118
    Are you by chance taking Zend certification?

  5. #5
    Join Date
    Feb 2012
    Location
    youTUBE
    Posts
    234
    Does $c="&D" turn out to be anything like $crlf=""\n"?

  6. #6
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,536
    Quote Originally Posted by WyCnet View Post
    Does $c="&D" turn out to be anything like $crlf=""\n"?
    There is nothing special about the "&" character within a PHP string literal, so in that case $c would just be set to a 2-character string of "&D". (Now, what a browser might think about it if you output that variable to the browser is a whole 'nother matter. ).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles