Search found 5 matches
- Thu Sep 04, 2003 9:33 pm
- Forum: PHP - Code
- Topic: foreach w/nested variable-depth multi-dimensional arrays
- Replies: 3
- Views: 386
and here I thought ppl took the time to [color] their code... There can only be ten (maximum), numbered 1-10. I made up this array construction, but it should work with the code I got to work $player = array( 'Name' => 'Joe', 'Clan' => 'USA'; 'Rank1' => 'Newbie', 'Rank2' => 'Sorcerer'; 'Skills' => a...
- Thu Sep 04, 2003 3:02 pm
- Forum: PHP - Code
- Topic: foreach w/nested variable-depth multi-dimensional arrays
- Replies: 3
- Views: 386
foreach w/nested variable-depth multi-dimensional arrays
I want to display all the information for 10 ppl. This is what I tried: $Player[1]['Name'] = "Joe"; $Player[1]['Rank'] = "Newbie"; $Player[1]['Skills']['Digging'] = 0; for ($Player_Num = 1; $Player_Num <= 10; $Player++) { echo "$Player_Num : {$Player[$Player_Num]['Name']}<br...
- Thu Aug 28, 2003 10:09 pm
- Forum: PHP - Code
- Topic: fopen - trouble reading in entire file
- Replies: 3
- Views: 328
- Thu Aug 28, 2003 9:27 pm
- Forum: PHP - Code
- Topic: fopen - trouble reading in entire file
- Replies: 3
- Views: 328
- Thu Aug 28, 2003 8:51 pm
- Forum: PHP - Code
- Topic: fopen - trouble reading in entire file
- Replies: 3
- Views: 328
fopen - trouble reading in entire file
I'm having trouble with fopen. This is the site I'm testing it on: http://myplanetside.station.sony.com/outfit.jsp?outfitId=6723&worldId=16 The first 41 lines of page source will be read, but then it stops. If I copy the 3946 lines of page source and save it to a .txt file on my server the entir...