🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3201

Re: Pregunta PHP, arreglos con distinta llave

#3201
From: Cristian Gutierrez
Date: Wed, 27 Apr 2005 21:28
26 lines
2825 bytes
Hoy en la tarde, jgarrido@dcc.uchile.NOSPAM.cl dijo:
>   Tengo 3 arrays, pero las llaves de cada elemento no son correlativas.

[...]

>    El asunto es que necesito leer el primer elemento de cada arreglo, 
> luego el segundo de cada arreglo, etc. Todos los arreglos tienen distinto 
> largo.
>  
>   Como lo puedo hacer? 
>
>   Me dijeron que una forma es hacerlo con punteros de php, sacar el 
> current y luego avanzarlo con next. Hay otra manera mejor?

Mejor en que sentido? A mi se me ocurre usar array_shift, pero este va
*quitando* elementos del arreglo, asi que no se si te sirve mas o menos
que current y next.

-- 
Cristian Gutierrez			http://www.dcc.uchile.cl/~crgutier
crgutier[@]dcc.uchile.cl                        Jabber:crgutier@jabber.org

Q: How many programmers does it take to change a light bulb?
A: Just one.
But it takes him all night.
And when he's done, the refrigerator and toilet are broken!
Technical Details
Message-ID: <873btb3o4o.fsf@guti.no-ip.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news1.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!guti.no-ip.org!news
References: <d4os0r$319$1@localhost.localdomain>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,d75fd42cbe357c09
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news1.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!guti.no-ip.org!news
From: Cristian Gutierrez <crgutier@dcc.uchile.cl>
Newsgroups: chile.comp.programacion
Subject: Re: Pregunta PHP, arreglos con distinta llave
Date: Wed, 27 Apr 2005 17:28:55 -0400
Organization: DCC - Universidad de Chile
Lines: 26
Message-ID: <873btb3o4o.fsf@guti.no-ip.org>
References: <d4os0r$319$1@localhost.localdomain>
NNTP-Posting-Host: anakena.dcc.uchile.cl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: helcaraxe.dcc.uchile.cl 1114637400 19708 192.80.24.6 (27 Apr 2005 21:30:00 GMT)
X-Complaints-To: newsmaster@dcc.uchile.cl
NNTP-Posting-Date: Wed, 27 Apr 2005 21:30:00 +0000 (UTC)
Face: iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAADFBMVEUWFhZfX1+ioqL6+vr8
 dj+QAAAAAWJLR0QAiAUdSAAAAg5JREFUeNql0s9r02AYB/B4GIHuoAgVVmG9CVYwf4ILrht40Ynd
 dEXioWUsA3PaQQ8LKHpYLnbTThwiHbWYV9Sj9rL36NUObGkPUrVzuIs/6BvyluZ9ljcxaXI2lzwf
 eJOH9/k+AvhP/7j/Fv65OxMzmynhqO1zH/So+29NLeqvh6YU8WADmemIP4lxL8pxp6p3o2aZegZl
 R3YyaBJNaaGHKkqgxOXQNkKXzLQR+g9C6+b5kfcQevgmpYRuIrRZn5BCryO0US3ogW1BdV0J+3dz
 grpXmQXYfuf5nkLH5ksK/SIrnq/rg26ioTmdygtupwgWHSvoTnvF4CZl17dOYNoWy9yNPOzXfstg
 tYtXuR9o0JwlL+HgeWGBW8ZgGBbFnWUhw33Sbdz6TvHN1ey8a3YGIN+6T2C5PYFdD2sA6d5FAu9v
 LH3WBbAJBgmIDJ3ioooFoCzPNDq5in82TX7egsdXcE+0pZ3sEr+fxW7XoCvS3HRS4f7rrGHojRP0
 6A72TOtuoBrZnVvz5kGIzVejX0jpvi2bF0Q+iz1TWuXFwbOkP7/hrrdaH58u+HakX7wwSsF8/eDT
 wf45417kFwIPd7yIcWDS52UDApevuZ86p0PLK1tuZHpoBN8YLgOM9pswfft/vO9oMf9g6UbMYNij
 /jDYglZwHRCYIIgx56aO4earyPlD89R0Mvo/9kR9HfgIgorhXaQc58oAAAAASUVORK5CYII=
User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)
Cancel-Lock: sha1:oksTX3fUsG1t6pgtuRcVfi1d6J0=