I am trying to write some text encryption stuff...
but before I do that, I need to be able to perform operations
on single characters!
Here's what I have :
<?php
$text = 'Encode me!';
for($i=0; $i < strlen($text); $i++) {
$text[$i] = $text[$i] + 1;
}
echo $text;
This echos : 1111111111
Hmm
Any ideas? Because I thought that PHP treated all characters in
a string as bytes.