[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/appendices/_about.xml?=
From: Peter_Cowburn <salathe () php ! net>
Date: 2019-03-21 19:05:21
Message-ID: svn-salathe-1553195121-347032-726486049 () svn ! php ! net
[Download RAW message or body]
salathe Thu, 21 Mar 2019 19:05:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=347032
Log:
update return type position in "How to read a function definition (prototype)" section
Changed paths:
U phpdoc/en/trunk/appendices/about.xml
Modified: phpdoc/en/trunk/appendices/about.xml
===================================================================
--- phpdoc/en/trunk/appendices/about.xml 2019-03-20 21:57:21 UTC (rev 347031)
+++ phpdoc/en/trunk/appendices/about.xml 2019-03-21 19:05:21 UTC (rev 347032)
@@ -141,7 +141,7 @@
strlen -- Get string length
Description
-int strlen ( string $string )
+strlen ( string $string ) : int
Returns the length of given string.
]]>
@@ -176,22 +176,22 @@
</row>
<row>
<entry>
- int
+ ( string $string )
</entry>
<entry>
- Type of value this function returns, which is an
- <type>integer</type> (i.e. the length of a string is measured in
- numbers).
+ The first (and in this case the only) parameter/argument for this
+ function is named <parameter>string</parameter>, and it's a
+ <type>string</type>.
</entry>
</row>
<row>
<entry>
- ( string $string )
+ int
</entry>
<entry>
- The first (and in this case the only) parameter/argument for this
- function is named <parameter>string</parameter>, and it's a
- <type>string</type>.
+ Type of value this function returns, which is an
+ <type>integer</type> (i.e. the length of a string is measured in
+ numbers).
</entry>
</row>
</tbody>
@@ -204,7 +204,7 @@
<para>
<screen>
<![CDATA[
- returned type function name ( parameter type parameter name )
+ function name ( parameter type parameter name ) : returned type
]]>
</screen>
</para>
@@ -215,7 +215,7 @@
<para>
<screen>
<![CDATA[
- bool in_array ( mixed $needle, array $haystack [, bool $strict = FALSE ] )
+ in_array ( mixed $needle, array $haystack [, bool $strict = FALSE ] ) : bool
]]>
</screen>
</para>
@@ -247,8 +247,8 @@
<para>
<screen>
<![CDATA[
- int preg_match ( string $pattern , string $subject [, array &$matches
- [, int $flags = 0 [, int $offset = 0 ]]] )
+ preg_match ( string $pattern , string $subject [, array &$matches
+ [, int $flags = 0 [, int $offset = 0 ]]] ) : int
]]>
</screen>
</para>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic