>
> 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to