Re: Re: Defining Arrays
| From: | Bogdan Stancescu | Date: | Sun, 13 Jan 2002 22:27:40 +0000 |
| Subject: | Re: Re: Defining Arrays | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15733@lists.php.net to get a copy of this message | ||
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" <tomi@mediasoft.ro> wrote in message
> news:20020113153742.88846.qmail@pb1.pair.com...
> > 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: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net