Why don't you try $denc[]=substr($text,$i,1); Not to mention that $text[1] already is "h".
Bogdan Thomas \"omega\" Henning wrote: > Something i forgot > when i echo("$denc[1]"); then it types Array out !!! > "Thomas "Omega" Henning" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello, > > > > I'm curently working on an Encryption Bot for IRC that sends encrypted > > messages to other bots linked 2 it and users that are log into it. > > How i define an Array so i can use something like this > > <? > > $text="hello"; > > for ($i=0;$i<strlen($text);$i++) { > > $denc[$i]=substr($text,$i,1); > > } > > echo("$denc[1]"); > > ?> > > Theoraticly (in C++ point of view) that should print out "h". > > Any idias helps alot > > > > Thanks > > > > Thomas "omega" Henning > > > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]