Re: [PHP3] strlen() error puzzling me

From: Date: Thu, 27 Jan 2000 05:22:40 +0000
Subject: Re: [PHP3] strlen() error puzzling me
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-14944@lists.php.net to get a copy of this message
nope...that just makes it worse...gives me absolutely NO output, and gives me this error message: Parse error: parse error, expecting `')'' in /www/blah/foo/php_self.php3 on line 8 Chris Fry wrote: > > Looks like the previous line:- > > missing the ; after $i++ > > for ($i=0;$i<=strlen($chars);$i++) { > > Devon Young wrote: > > > <?php > > > > $chars = > > "0123456789AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"; > > > > function output() { > > global $chars; > > > > for ($i=0;$i<=strlen($chars);$i++) { > > print "$chars[$i]<br>\n"; > > } > > > > } > > > > ?> > > > > ...I keep getting an error on line 9 (which is the > > print "$chars[$i]<br>\n";) of that code. what's wrong with it? It > > looks > > perfect to me. > > > > - Dev > > > > -- > > PHP 3 Mailing List <http://www.php.net/> > > To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net > > To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net > > To search the mailing list archive, go to: > > http://www.php.net/mailsearch.php3 > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > Chris Fry > Quillsoft Pty Ltd > 10 Gray Street > Kogarah > NSW 2217 > Australia > > Phone: +61 2 9553 1691 > Fax: +61 2 9553 1692 > Mobile: 0419 414 323 > eMail: chris@quillsoft.com.au > http://www.quillsoft.com.au

« previous php.dev (#14944) next »