svn: /phpdoc/en/trunk/reference/info/functions/ version-compare.xml

From: Date: Thu, 12 Jun 2014 14:22:52 +0000
Subject: svn: /phpdoc/en/trunk/reference/info/functions/ version-compare.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12524@lists.php.net to get a copy of this message
daverandom Thu, 12 Jun 2014 14:22:52 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333759 Log: Remove informal language from version_compare() Changed paths: U phpdoc/en/trunk/reference/info/functions/version-compare.xml Modified: phpdoc/en/trunk/reference/info/functions/version-compare.xml =================================================================== --- phpdoc/en/trunk/reference/info/functions/version-compare.xml 2014-06-11 19:42:31 UTC (rev 333758) +++ phpdoc/en/trunk/reference/info/functions/version-compare.xml 2014-06-12 14:22:52 UTC (rev 333759) @@ -16,15 +16,13 @@ </methodsynopsis> <para> <function>version_compare</function> compares two "PHP-standardized" - version number strings. This is useful if you would like to write programs - working only on some versions of PHP. + version number strings. </para> <para> The function first replaces <literal>_</literal>, <literal>-</literal> and <literal>+</literal> with a dot <literal>.</literal> in the version strings and also inserts dots <literal>.</literal> before and after any non number so that for example '4.3.2RC1' becomes '4.3.2.RC.1'. Then it - splits the results like if you were using explode('.', $ver). Then it compares the parts starting from left to right. If a part contains special version strings these are handled in the following order: <literal>any string not found in this list</literal> &lt; @@ -62,19 +60,17 @@ <term><parameter>operator</parameter></term> <listitem> <para> - If you specify the third optional <parameter>operator</parameter> - argument, you can test for a particular relationship. The - possible operators are: <literal>&lt;</literal>, - <literal>lt</literal>, <literal>&lt;=</literal>, - <literal>le</literal>, <literal>&gt;</literal>, - <literal>gt</literal>, <literal>&gt;=</literal>, - <literal>ge</literal>, <literal>==</literal>, - <literal>=</literal>, <literal>eq</literal>, - <literal>!=</literal>, <literal>&lt;&gt;</literal>, - <literal>ne</literal> respectively. + If the third optional <parameter>operator</parameter> argument is + specified, test for a particular relationship. The possible operators + are: <literal>&lt;</literal>, <literal>lt</literal>, + <literal>&lt;=</literal>, <literal>le</literal>, <literal>&gt;</literal>, + <literal>gt</literal>, <literal>&gt;=</literal>, <literal>ge</literal>, + <literal>==</literal>, <literal>=</literal>, <literal>eq</literal>, + <literal>!=</literal>, <literal>&lt;&gt;</literal>, <literal>ne</literal> + respectively. </para> <para> - This parameter is case-sensitive, so values should be lowercase. + This parameter is case-sensitive, values should be lowercase. </para> </listitem> </varlistentry>

« previous php.doc.cvs (#12524) next »