www.webdeveloper.com
Results 1 to 4 of 4

Thread: [RESOLVED] How to convert chars starts with & to ASCII ?

  1. #1
    Join Date
    Jun 2005
    Posts
    93

    resolved [RESOLVED] How to convert chars starts with & to ASCII ?

    some letters like $npsb appear when I parse HTML, is there anyway to convert them to ASCII chars using PHP?

  2. #2
    Join Date
    Jan 2005
    Location
    Illinois
    Posts
    815
    This function will convert all html entities to their actual charcters:
    html_entity_decode()
    I think that's what you're looking for...

    --Steve
    Save The Shirts!
    Don't overuse exclamation marks!!!!!!

  3. #3
    Join Date
    Jun 2005
    Posts
    93
    Thank you very much

  4. #4
    Join Date
    Jan 2005
    Location
    Illinois
    Posts
    815
    No problem!

    --Steve
    Save The Shirts!
    Don't overuse exclamation marks!!!!!!

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