|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
PHP Array Question
Hi
At the moment im using this to print part of an array PHP Code:
what im trying to do is this PHP Code:
ive tried and tried and cannot get it to work, any ideas? Thanks, James |
|
|
|
|
|
#2 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
Hi James,
Try calculating the index outside of the print statement, like this. PHP Code:
|
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Ok i managed it by doing the following if any one is intrested:
PHP Code:
All the best, James |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Why converting to string? I think :
PHP Code:
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|