Reply to Re: slicing a complex array

Your name:

Reply:


Posted by David TG on 09/18/07 10:41

gosha, et al --

gosha bine wrote:
> On 18.09.2007 06:29 David TG wrote:
> >
> > I would like to take a partial slice of a fairly complex array. The
> > source looks something like
....
> > Is there an easy way to do this across my entire source array without
> > just looping over it myself?
>
> There's apparently no built-in function that can handle this. If, for
> some reason, you're unhappy with "foreach", you can try array_map() or

Ahhhh... Those both sound familiar; I'll check 'em out.


> array_walk(). The modern OO approach would be to use an iterator,
> perhaps even different ones for different purposes.
[snip]

Oho! Thanks; I'll have to play with that.


>
....
> >
> > P.S. -- This is my first post-by-google, so I'm interested in seeing
> > how the formatting comes out. Wish me luck :-)
....
>
> The formatting is ok, but you should add a space after "--".

Heh. That's a web form for you. It was there originally :-/

I also noticed lots of extra linefeeds in my post. I'm not sure
whether I like 'em or not, as wrapping lines is a good thing but not
doing it where I want gets on my nerves.


Thanks again & HAND

:-D
--
David T-G

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация