Students Position From Average

Posted 1 month ago by InspiredPrynce

Please i have a data like this..

array:9 [
    3101625668 => 98.0,
    3101635921 => 98.0,
    3913126364 => 35.77,
    3913058204 => 25.33,
    3101372540 => 33.47,
    3913752741 => 40.0,
    3913120054 => 20.4,
    3913998755 => 26.67,
    3913861492 => 25.2,
    3913881854 => 19.8,
]

I want to get the students position from the average. The array keys represent the student PIN Number and the value is their average. In array[0] and array[1], the values are the same and i want to get something like "1st" twice then "3rd"...

Someone help me please, have been awake all night working on this...

@andreasbakir thanks for the previous help you rendered! I appreciate man!

I really need help with this one!

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.