Reply to Re: How to pass array names to function parameters ?

Your name:

Reply:


Posted by milahu on 11/19/56 11:45

tony@tony.com schrieb:

> i'm trying to itterate through an array that contains the names of the
> global arrays
>
> eg:
>
> $myarray = array("\$_GET", "\$_SERVER"); and so on
>
> The problem Im having is calling a function with
>
> myfunction($myarray[0]);
>
> doesnt seem to pass the array name in a manner I can then use.
>
> I'm sure I'm missing something simple here can anyonehelp please ?
>
> tony

Try this one:

$arrs = array('_GET', '_POST');
foreach($arrs as $arrnam)
print_r($$arrnam);

[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

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