mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added terse docs for vprintf()/vsprintf(). Corrected return value for printf()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@62788 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
98cf617991
commit
8fd1f8079e
1 changed files with 65 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.123 $ -->
|
||||
<!-- $Revision: 1.124 $ -->
|
||||
<reference id="ref.strings">
|
||||
<title>String functions</title>
|
||||
<titleabbrev>Strings</titleabbrev>
|
||||
|
@ -1682,7 +1682,7 @@ echo $second[1]; /* prints "another" */
|
|||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>int <function>printf</function></funcdef>
|
||||
<funcdef>void <function>printf</function></funcdef>
|
||||
<paramdef>string <parameter>format</parameter></paramdef>
|
||||
<paramdef>mixed
|
||||
<parameter><optional>args</optional></parameter>...
|
||||
|
@ -3845,6 +3845,69 @@ $text = ucwords($text); // $text is now: Mary Had A Little
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.vprintf">
|
||||
<refnamediv>
|
||||
<refname>vprintf</refname>
|
||||
<refpurpose>Output a formatted string</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>void <function>vprintf</function></funcdef>
|
||||
<paramdef>string <parameter>format</parameter></paramdef>
|
||||
<paramdef>array
|
||||
<parameter>args</parameter>
|
||||
</paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
Display array values as a formatted string according to
|
||||
<parameter>format</parameter> (which is described in the documentation
|
||||
for <function>sprintf</function>).
|
||||
</simpara>
|
||||
<simpara>
|
||||
Operates as <function>printf</function> but accepts an array of
|
||||
arguments, rather than a variable number of arguments.
|
||||
</simpara>
|
||||
<simpara>
|
||||
See also: <function>printf</function>, <function>sprintf</function>,
|
||||
<function>vsprintf</function>
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.vsprintf">
|
||||
<refnamediv>
|
||||
<refname>vsprintf</refname>
|
||||
<refpurpose>Return a formatted string</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>string <function>vsprintf</function></funcdef>
|
||||
<paramdef>string <parameter>format</parameter></paramdef>
|
||||
<paramdef>array
|
||||
<parameter>args</parameter>
|
||||
</paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
Return array values as a formatted string according to
|
||||
<parameter>format</parameter> (which is described in the documentation
|
||||
for <function>sprintf</function>).
|
||||
</simpara>
|
||||
<simpara>
|
||||
Operates as <function>sprintf</function> but accepts an array of
|
||||
arguments, rather than a variable number of arguments.
|
||||
</simpara>
|
||||
<simpara>
|
||||
See also: <function>sprintf</function>, <function>vsprintf</function>,
|
||||
<function>vprintf</function>
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.wordwrap">
|
||||
<refnamediv>
|
||||
|
|
Loading…
Reference in a new issue