RE: [PHP] Quickie array question

From: Date: Wed, 11 Jun 2003 19:28:27 +0000
Subject: RE: [PHP] Quickie array question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151124@lists.php.net to get a copy of this message
> > foreach($newlines as $newline) { > > #how do I get the index of the array each time $newline is printed out? > > echo ??; > } foreach($newlines as $id=>$newline){ echo $id.''.$newline; } read the documentation http://us3.php.net/manual/en/control-structures.foreach.php

« previous php.general (#151124) next »