|
Posted by <talthen.z-serwera.o2 on 08/09/06 21:19
Benjamin D. Esham wrote:
>You should be able to set up a function that iterates through the array and
>does what you want.
mootmail-googlegroups[a_t]yahoo.com wrote:
> In the array you gave as an example, you have some non-numeric key
> values. Iterating a variable in order to do $tresc[$x] only works if
> you have integer keys in order, such as
> $tresc[0],$tresc[1],$tresc[2]...etc. For non-numeric keys, use the
> foreach control structure.
Hm... thank you. I didn't know that. I thought it will enumerate all
possible keys. Will try with foreach.
Thank you both,
Talthen
Navigation:
[Reply to this message]
|