note 39877 added to control-structures.for
| From: | pvillarroel at hotmail dot com | Date: | Fri, 13 Feb 2004 20:33:54 +0000 |
| Subject: | note 39877 added to control-structures.for | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65115@lists.php.net to get a copy of this message | ||
Tengo una duda, y que lamentablemente no veo aclarada aquí. Tengo el siguiente código:
for ($c=1; $c=2; $c=3; ... $c=300) {
$bar = "<img border=0 src=loadbar.gif width=1 height=10>";
echo $barra;
}
A mi parecer, esta correctamente escrito. Es muy básico. Sin embargo, al comprobar al código me
sale el siguiente error:
Parse error: parse error, expecting ")'' in
/home/.sites/145/site120/web/php/mailer2.php on line 140
¿por qué me sale el error si la sintaxis es correcta? ¿Será porque tengo demasiadas expresiones
para for (esta sentencia tiene 300 expresiones)?
La Gran Pregunta: ¿Cuál es el máximo de expresiones soportadas por el bucle for?
--------------------------------------------
I try translate, sorry for the mistaken words
--------------------------------------------
I have one doubt, and lamentably I do not see clarified here. I have the following code:
for ($c=1; $c=2; $c=3; ... $c=300) {
$bar = "<img border=0 src=loadbar.gif width=1 height=10>";
echo $barra;
}
To me, this is correctly written. It's very basic. Nevertheless, when verifying to the code it
leaves the following error:
Parse error: parse error, expecting ")'' in
/home/.sites/145/site120/web/php/mailer2.php on line 140
Why it leaves this error if the syntax is -I believe- correct? It will be because I have too many
expressions for "For" (this sentence have 300 expressions)?
The Great Question: Which is the maximum of expressions supported by "For"?
----
Manual Page -- http://www.php.net/manual/en/control-structures.for.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39877
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39877&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39877&report=yes
Search -- http://master.php.net/manage/user-notes.php