
yaniv_av
Novice
Oct 29, 2002, 9:31 PM
Post #1 of 2
(205 views)
|
|
determine the current index in foreach-loop
|
Can't Post
|
|
How can I determine the current index (loop-counter) when using foreach-loop ? Example: foreach $word (@letter) {...} Now, I want to print the word number in the letter. Can I do it without using another variable for counting ? (Is There a internal-variable that contain the current index in the loop? )
|