Reply to Foreach that starts from 1 not 0?

Your name:

Reply:


Posted by <talthen.z-serwera.o2 on 07/31/05 18:42

Hello,
I want to write smth that works like:
foreach ($_REQUEST AS $key=>$val) echo "$key : $ val";
But it have to start from 1st element of $_REQUEST, not from 0 (like foreach
does).

I tried smth like:
for ($i=1; $i<count($_REQUEST);$i+2)
{
$key=$_REQUEST[$i];
$val=$_REQUEST[$i+1];

but it doesn't seem to work. How to solve it?

Regards,
Talthen

[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

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