Web Analytics Made Easy -
StatCounter String or Char -> Binary Representation - CodingForum

Announcement

Collapse
No announcement yet.

String or Char -> Binary Representation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • String or Char -> Binary Representation

    Hi guys,

    Is there a function to convert a String to its binary representation. Also maybe convert a char to binary.

    Thank you.
    http://www.encodedmessages.com

  • #2
    PHP Code:
    for($i 0$i strlen($str); $i++){
       
    printf("%08s ",   decbin(ord(substr ($str,$i1))));

    Comment

    Working...
    X