end : rewording and CS

shuffle : there's a &note.random.seed; entity, so we don't need to use srand()


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@152961 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2004-03-05 12:12:57 +00:00
parent ff2a50fa3f
commit b5be781648
2 changed files with 6 additions and 9 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.end">
<refnamediv>
@ -16,8 +16,7 @@
</methodsynopsis>
<para>
<function>end</function> advances <parameter>array</parameter>'s
internal pointer to the last element, and returns the value from
the last element.
internal pointer to the last element, and returns its value.
</para>
<para>
<example>
@ -26,9 +25,8 @@
<![CDATA[
<?php
$fruits = array('apple', 'banana', 'cranberry');
echo end($fruits); // cranberry
$fruits = array('apple', 'banana', 'cranberry');
echo end($fruits); // cranberry
?>
]]>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.shuffle">
<refnamediv>
@ -14,8 +14,7 @@
</methodsynopsis>
<para>
This function shuffles (randomizes the order of the elements in)
an array. You must use <function>srand</function> to seed this
function.
an array.
<example>
<title><function>shuffle</function> example</title>
<programlisting role="php">