Reply to Re: combination events

Your name:

Reply:


Posted by petersprc on 10/29/06 06:43

Unfortunately that syntax isn't supported. You can just create the
temporary array variable. If you really need something else, you could
try something like

function get(& $array, $key)
{
return $array[$key];
}

$ext = get(pathinfo($file), 'extension');

Koncept wrote:
> Hello All!
>
> I have been wondering for a while if it is possible to achieve the
> effect I have noted below without having to span many lines of code.
> Any creative insight without too much kludge involved would be
> appreciated? I just find coding like this much more elegant and clean.
>
> $extn = pathinfo( $file )['extension'];
>
> --
> Koncept <<
> "The snake that cannot shed its skin perishes. So do the spirits who are
> prevented from changing their opinions; they cease to be a spirit." -Nietzsche

[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

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