Article View: chile.comp.programacion
Article #1235Re: script php
From: Jos� Miguel Santib��ez
Date: Fri, 01 Dec 2006 03:10
Date: Fri, 01 Dec 2006 03:10
47 lines
2427 bytes
2427 bytes
En el cap�tulo anterior (news:eknmh4$tua$1@news.nivel5.cl), "RobertoCL"
<rcl2020NOSPAM@hotmail.com> dijo:
> "Jos� Miguel Santib��ez" <jms.nospam@nivel5.cl> escribi� en el mensaje
> news:Xns988BEA82E4EF7jmsnews@200.27.221.71...
>> En el cap�tulo anterior (news:ekni23$sgs$1@news.nivel5.cl), "RobertoCL"
>> <rcl2020NOSPAM@hotmail.com> dijo:
>>
>>> A modo de ejemplo tengo
>>>
>>> for ($i=0; $i<100;$++){
>>> if ($i % 2) echo "interlinea<br/>";
>>> }
>>>
>>> Eso imprime a la segunda iteraci�n de $i, como hago para que imprima
>>> cada 20 iteraciones?
>>>
>>> --
>>> RCL
>>>
>>
>>
>> for ($i=0; $i<100;$++){
>> if ($i % 20) echo "interlinea<br/>";
>> }
> Gracias, pero no es eso, es algo asi
>
> for ($i=0; $i<100;$i++){
> $n = $i / 20;
> echo "$i <br/>";
> if (strlen ($n) == 1 and $i > 1 ) echo "<b> EN: $i </b><br/>\n";
> }
>
> Quizas mas elegante...
sorry, se me olvid� el detallito:
for ($i=0; $i<100;$++){
if ($i % 20 == 0) echo "$i ";
}
ah� si...
0 20 40 60 80
--
Apoye a la campa�a de alfabetizaci�n y | Jose M. Santiba�ez A.
ordenaci�n de las news, cada post en su | <jms@nivel5.cl>
lugar y el lugar exacto para cada post | <http://caos.cl/jms>
Technical Details
Message-ID:
<Xns988BF3D2167EAjmsnews@200.27.221.71>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!not-for-mailReferences:
<ekni23$sgs$1@news.nivel5.cl> <Xns988BEA82E4EF7jmsnews@200.27.221.71> <eknmh4$tua$1@news.nivel5.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,fc3b4a8aa3b8df6e
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Newsgroups: chile.comp.programacion
Subject: Re: script php
From: "Jos� Miguel Santib��ez" <jms.nospam@nivel5.cl>
References: <ekni23$sgs$1@news.nivel5.cl> <Xns988BEA82E4EF7jmsnews@200.27.221.71> <eknmh4$tua$1@news.nivel5.cl>
Organization: Caos Consultores
Message-ID: <Xns988BF3D2167EAjmsnews@200.27.221.71>
User-Agent: Xnews/5.04.25
X-Face: +|NgjgFM{<rs%\Q|vUu16]a6,}?MJTA<!PEEI+x&Gw-Gyq+?$}fvo+.(,-r;)~Qzn)#{{nxU,OT?w^s<7m4ckCJ*L$c#I)yHL7b)GdU*#l
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 28-39-246-201.adsl.terra.cl
X-Original-NNTP-Posting-Host: 28-39-246-201.adsl.terra.cl
Date: 30 Nov 2006 23:10:17 -0400
X-Trace: news.vcd.cl!not-for-mail 1164939017 201.246.39.28 (30 Nov 2006 23:10:17 -0400)
X-Original-Trace: 30 Nov 2006 23:10:17 -0400, 28-39-246-201.adsl.terra.cl
Lines: 47
X-Authenticated-User: jms
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!not-for-mail