Hello,
I am creating my own basic encryption algorithm using php and I was wondering how I would be able to take a string and change every character in it into it's corresponding ASCII code. Could someone please help me on this?
Thanks, Joe Kerlin
try this:
<?php $str = 'THis is the string'; for ($i=0;$i<strlen($str);$i++){ echo ord($str[$i])."<br>\n"; } ?>
Thanks man.