Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Posts
    694

    Convert values to HEX?

    hi guys,

    was wondering if we can convert an output value to hex? something along the line of $echo hex($output). is this possible?

  2. #2
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,765
    Are you talking about converting an decimal to hex?

    Take a look here: http://us.php.net/manual/en/function.dechex.php
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  3. #3
    Join Date
    Apr 2005
    Posts
    694
    well, I was thinking text too since i am required to convert( :, /, ;, spaces) into hex, I thought if I do the whole shabang it would be faster and less headache.

  4. #4
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,765
    I must be misunderstanding you somewhere. Hex is a base 16 numbering system (much like binary is a base 2 numbering system). Text doesn't directly convert into hex. What are you actually trying to do?
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  5. #5
    Join Date
    Apr 2005
    Posts
    694
    Please see my newer thread.

Posting Permissions

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