1
0
mirror of https://github.com/php/doc-de.git synced 2026-03-29 18:52:13 +02:00
Files
archived-doc-de/reference/strings/functions/vfprintf.xml
Carola 'Sammy' Kummert ac31e08fd3 initial translation
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@184985 c90b9560-bf6c-de11-be94-00142212c4b1
2005-04-24 15:44:15 +00:00

79 lines
2.4 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.2 Maintainer: sammywg Status: working -->
<refentry id="function.vfprintf">
<refnamediv>
<refname>vfprintf</refname>
<refpurpose>Schreibt einen formatierten String in einen Stream</refpurpose>
</refnamediv>
<refsect1>
<title>Beschreibung</title>
<methodsynopsis>
<type>int</type><methodname>vfprintf</methodname>
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
<methodparam><type>string</type><parameter>format</parameter></methodparam>
<methodparam><type>array</type><parameter>args</parameter></methodparam>
</methodsynopsis>
<simpara>
Schreibt einen der <parameter>Format</parameter>anweisung entsprechenden
String in den im <parameter>handle</parameter> definierten Stream.
Die möglichen <parameter>Format</parameter>-Anweisungen sind in der Funktion
<function>sprintf</function> dokumentiert.
</simpara>
<simpara>
Verhält sich wie <function>fprintf</function>, akzeptiert jedoch ein Array
anstelle einer Gruppe von Werten als Parameter.
</simpara>
<simpara>
Gibt die Länge des formatierten Strings zurück.
</simpara>
<simpara>
Siehe auch <function>printf</function>,
<function>sprintf</function>,
<function>sscanf</function>, <function>fscanf</function>,
<function>vsprintf</function>, und
<function>number_format</function>.
</simpara>
</refsect1>
<refsect1>
<title>Beispiel:</title>
<para>
<example>
<title><function>vfprintf</function>: Integer-Werte mit führenden Nullen</title>
<programlisting role="php">
<![CDATA[
<?php
if (!($fp = fopen('date.txt', 'w')))
return;
vfprintf($fp, "%04d-%02d-%02d", array($year, $month, $day));
// schreibt das ISO-formatierte Datum in die Daten date.txt
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->