Rev 1644 | Rev 1647 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1644 | Rev 1646 | ||
|---|---|---|---|
| Line -... | Line 1... | ||
| - | 1 | ||
| - | 2 | function array_length(array) |
|
| - | 3 | { |
|
| - | 4 | var count = 0; |
|
| - | 5 | ||
| - | 6 | for (var n in array) |
|
| - | 7 | { |
|
| - | 8 | count++; |
|
| - | 9 | } |
|
| - | 10 | ||
| - | 11 | return count; |
|
| - | 12 | } |
|
| 1 | 13 | ||
| 2 | function in_array(array, item) |
14 | function in_array(array, item) |
| 3 | { |
15 | { |
| 4 | for (var n in array) |
16 | for (var n in array) |
| 5 | { |
17 | { |