Timeline for array count() issue
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 20, 2020 at 9:12 | history | edited | Community Bot |
Commonmark migration
|
|
| Dec 26, 2012 at 12:17 | vote | accept | Najiullah.com | ||
| Dec 26, 2012 at 12:17 | comment | added | Najiullah.com | thanks for your help. my problem is solved... like your instruction. i just wrong put $array = array(); before loop start. :p thanks for your help. ^_^ | |
| Dec 26, 2012 at 12:03 | comment | added | Najiullah.com | thanks for your edit and your code. but my result just show like this: score for B = 1 whats wrong? i follow your instruction and fail.. :( | |
| Dec 25, 2012 at 9:55 | history | edited | Shiplu Mokaddim | CC BY-SA 3.0 |
added 446 characters in body
|
| Dec 25, 2012 at 9:48 | comment | added | Najiullah.com | My php code: $nialiakhirpraktikum = $ntugasakhir+$ratarata; //from other process if ($nialiakhirpraktikum>79) { $grade="A"; } else if ($nialiakhirpraktikum<=79 AND $nialiakhirpraktikum>67) { $grade="B"; } else if ($nialiakhirpraktikum<=67 AND $nialiakhirpraktikum>55) { $grade="C"; } else if ($nialiakhirpraktikum<=55 AND $nialiakhirpraktikum>44) { $grade="D"; } else { $grade="E"; } $array = array($grade); print_r(array_count_values($array)); | |
| Dec 25, 2012 at 9:13 | comment | added | Najiullah.com | my code for : "array('B' => '1'), array('B'=>'1'), array('B' => '1'), array("C"=>"1"), array('C'=>'1')" is from looping. code in the first question is final result. how to replace that? | |
| Dec 25, 2012 at 9:04 | history | answered | Shiplu Mokaddim | CC BY-SA 3.0 |