Doc #55744 [Opn->Wfx]: Inefficient manual example

From: Date: Tue, 20 Sep 2011 21:43:49 +0000
Subject: Doc #55744 [Opn->Wfx]: Inefficient manual example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7240@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55744&edit=1 ID: 55744 Updated by: aharvey@php.net Reported by: zach dot rattner at gmail dot com Summary: Inefficient manual example -Status: Open +Status: Wont fix Type: Documentation Problem Package: Documentation problem Operating System: NA PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: The example is overly explicit, as the note below it says. Having it laid out this way helps make it clearer what the return values may be from a comparison function. Previous Comments: ------------------------------------------------------------------------ [2011-09-20 20:11:07] zach dot rattner at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.usort#refsect1-function.usort- examples --- Why isn't cmp defined to be 'return $a - $b;'? ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55744&edit=1

« previous php.doc.bugs (#7240) next »