svn: /phpdoc/en/trunk/reference/array/functions/ natsort.xml
| From: | Peter Cowburn | Date: | Thu, 14 May 2015 12:01:42 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/array/functions/ natsort.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13299@lists.php.net to get a copy of this message | ||
salathe Thu, 14 May 2015 12:01:42 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=336772
Log:
Removes examples that a) don't demonstrate output that relates to the purpose of the example
and b) relate more to another function (usort) than the function which is the topic of the manual
page (natsort) (doc bug #69604)
--
Provided by Melanie King (mvs.php@gmail.com)
Bug: https://bugs.php.net/69604 (Open) Doubtful examples
Changed paths:
U phpdoc/en/trunk/reference/array/functions/natsort.xml
Modified: phpdoc/en/trunk/reference/array/functions/natsort.xml
===================================================================
--- phpdoc/en/trunk/reference/array/functions/natsort.xml 2015-05-14 08:55:44 UTC (rev 336771)
+++ phpdoc/en/trunk/reference/array/functions/natsort.xml 2015-05-14 12:01:42 UTC (rev 336772)
@@ -127,18 +127,6 @@
print_r($zeros);
natsort($zeros);
print_r($zeros);
-
-echo "Other characters interfering\n";
-$images_oops = array('image_1.jpg','image_12.jpg', 'image_21.jpg',
'image_4.jpg');
-print_r($images_oops);
-natsort($images_oops);
-print_r($images_oops);
-
-echo "Sort by keys\n";
-$smoothie = array('orange' => 1, 'apple' => 1, 'yogurt' =>
4, 'banana' => 4);
-print_r($smoothie);
-uksort( $smoothie, 'strnatcmp');
-print_r($smoothie);
?>
]]>
</programlisting>
@@ -186,38 +174,6 @@
[2] => 10
[4] => 011
)
-
-Other characters interfering
-Array
-(
- [0] => image_1.jpg
- [1] => image_12.jpg
- [2] => image_21.jpg
- [3] => image_4.jpg
-)
-Array
-(
- [0] => image_1.jpg
- [3] => image_4.jpg
- [1] => image_12.jpg
- [2] => image_21.jpg
-)
-
-Sort by keys
-Array
-(
- [orange] => 1
- [apple] => 1
- [yogurt] => 4
- [banana] => 4
-)
-Array
-(
- [apple] => 1
- [banana] => 4
- [orange] => 1
- [yogurt] => 4
-)
]]>
</screen>
</example>