itisnot_me
0
Posting Whiz in Training
Recommended Answers
Jump to PostA clearer example might help. How exactly are you filling the array, how are you outputting the result, what result are you expecting, and what result do you get?
Example:$total = array(); $total[] = 10; $total[] = 15; $total[] = 5; print ("sum is " . …
Jump to PostIt looks like you're doing the summing inside of a loop. Try to wait to perform the sum calculation until after the loop has completed.
All 11 Replies
Simon Tite
15
Light Poster
Wraithmanilian
1
Junior Poster
itisnot_me
0
Posting Whiz in Training
harshbavaliya
0
Junior Poster in Training
Wraithmanilian
1
Junior Poster
harshbavaliya
0
Junior Poster in Training
harshbavaliya
0
Junior Poster in Training
itisnot_me
0
Posting Whiz in Training
harshbavaliya
0
Junior Poster in Training
ashiqin
0
Newbie Poster
ashiqin
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.