[PHP] PEAR & PHP

2011-01-29 Thread Ethan Rosenberg
Dear list - I enter the command pear list, and get errors. See below -- ethan@rosenberg:/usr/lib/php5$ ls -l total 12 drwxr-xr-x 2 root root 4096 Jan 6 00:53 20090626+lfs drwxr-xr-x 2 root root 4096 Jul 18 2010 libexec -rwxr-xr-x 1 root root 596 Jan 5 08:09 maxlifetime ethan@rosenberg:/usr

[PHP] Re: "public static" or "static public"?

2011-01-29 Thread Colin Guthrie
'Twas brillig, and David Harkness at 28/01/11 18:41 did gyre and gimble: > On Fri, Jan 28, 2011 at 10:35 AM, Mujtaba Arshad wrote: > >> Having learned java before even knowing what php was (yeah I'm a noob in >> both) I prefer scope static function. > > > I learned Java first, too, and also pref

Re: [PHP] 95th percentile of an array.

2011-01-29 Thread Paul Halliday
On Sat, Jan 29, 2011 at 2:28 PM, Adam Richardson wrote: > For the nearest rank computation, you could use the following: > > $arr = > array(12,89,65,23,90,99,9,15,56,67,3,52,78,12,10,88,77,77,77,77,77,77,77); > sort($arr); > $score_representing_95th_percentile = $arr[round((95/100) * count($arr) -

Re: [PHP] 95th percentile of an array.

2011-01-29 Thread Adam Richardson
For the nearest rank computation, you could use the following: $arr = array(12,89,65,23,90,99,9,15,56,67,3,52,78,12,10,88,77,77,77,77,77,77,77); sort($arr); $score_representing_95th_percentile = $arr[round((95/100) * count($arr) - .5)]; echo $score_representing_95th_percentile; // 90 That said, t

[PHP] 95th percentile of an array.

2011-01-29 Thread Paul Halliday
What is the quickest way to do this? Will stats_stat_percentile work? If so, does anyone have examples of its operation? Keep in mind that my math is terrible. Use small words :) Thanks. -- Paul Halliday http://www.pintumbler.org -- PHP General Mailing List (http://www.php.net/) To unsubscrib