mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
typo fixes submitted by anon users
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338501 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ba2a7b19b5
commit
142e1a0eb7
6 changed files with 12 additions and 9 deletions
|
@ -33,7 +33,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
while (list($key, $value) = each($arr)) {
|
||||
if (!($key % 2)) { // skip odd members
|
||||
if (!($key % 2)) { // skip even members
|
||||
continue;
|
||||
}
|
||||
do_something_odd($value);
|
||||
|
|
|
@ -23,14 +23,17 @@ declare (directive)
|
|||
The <literal>directive</literal> section allows the
|
||||
behavior of the <literal>declare</literal> block to
|
||||
be set.
|
||||
Currently only two directives are recognized: the
|
||||
Currently only three directives are recognized: the
|
||||
<literal>ticks</literal> directive (See below for more
|
||||
information on the
|
||||
<link linkend="control-structures.declare.ticks">ticks</link>
|
||||
directive) and the <literal>encoding</literal> directive (See below for more
|
||||
directive), the <literal>encoding</literal> directive (See below for more
|
||||
information on the
|
||||
<link linkend="control-structures.declare.encoding">encoding</link>
|
||||
directive).
|
||||
directive) and the <literal>strict_types</literal> directive (See for more
|
||||
information the
|
||||
<link linkend="functions.arguments.type-declaration.strict">strict</link>
|
||||
section on the Function arguments page)
|
||||
</para>
|
||||
<para>
|
||||
<informaltable>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
</methodsynopsis>
|
||||
<para>
|
||||
Sets a function to be called when a task is received and queued by the Gearman job server.
|
||||
The callback should accept a single argument, a <classname>GearmanClient</classname> oject.
|
||||
The callback should accept a single argument, a <classname>GearmanTask</classname> oject.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<refentry xml:id="function.imagewebp" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>imagewebp</refname>
|
||||
<refpurpose>Output an WebP image to browser or file</refpurpose>
|
||||
<refpurpose>Output a WebP image to browser or file</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
|
|
|
@ -85,7 +85,7 @@ $phar->buildFromDirectory(dirname(__FILE__) . '/project');
|
|||
|
||||
$phar2 = new PharData('project2.zip');
|
||||
// add all files in the project, only include php files
|
||||
$phar->buildFromDirectory(dirname(__FILE__) . '/project', '/\.php$/');
|
||||
$phar2->buildFromDirectory(dirname(__FILE__) . '/project', '/\.php$/');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -51,11 +51,11 @@ echo new ReflectionFunction('title');
|
|||
&example.outputs.similar;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Function [ <user> function person ] {
|
||||
Function [ <user> function title ] {
|
||||
@@ Command line code 1 - 1
|
||||
|
||||
- Parameters [2] {
|
||||
Parameter #0 [ <required> $prefix ]
|
||||
Parameter #0 [ <required> $title ]
|
||||
Parameter #1 [ <required> $name ]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue