• 0

[PHP] Text 2 Binary


Question

5 answers to this question

Recommended Posts

  • 0

It's rather simple:

<?php

$str = "testing!";

for( $x = 0; $x < strlen( $str ); $x++)
{
  print sprintf( "%b", ord( $str{$x} ) );
}

?>

:)

Link to comment
Share on other sites

  • 0

decode this :p

011010000110010101111001001011000010000001110100011010000

1101001011100110010000001101001011100110010000001110000011100100

1100101011101000111010001111001001000000110001101101111011011110

110110000100001001000000011101000101001

Edited by timdorr
Link to comment
Share on other sites

  • 0
011010000110010101111001001011000010000001110100011010000

1101001011100110010000001101001011100110010000001110000011100100

1100101011101000111010001111001001000000110001101101111011011110

110110000100001001000000011101000101001

hey, this is pretty cool! :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.