cvs: phpdoc-de /reference/filter configure.xml constants.xml ini.xml reference.xml /reference/filter/functions filter-has-var.xml filter-id.xml
filter-input-array.xml filter-input.xml filter-list.xml filter-var-array.xml filter-var.xml

From: Date: Thu, 10 May 2007 12:26:10 +0000
Subject: cvs: phpdoc-de /reference/filter configure.xml constants.xml ini.xml reference.xml /reference/filter/functions filter-has-var.xml filter-id.xml
filter-input-array.xml filter-input.xml filter-list.xml filter-var-array.xml filter-var.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-2163@lists.php.net to get a copy of this message
timo Thu May 10 12:26:10 2007 UTC Added files: /phpdoc-de/reference/filter configure.xml constants.xml ini.xml reference.xml /phpdoc-de/reference/filter/functions filter-has-var.xml filter-id.xml filter-input-array.xml filter-input.xml filter-list.xml filter-var-array.xml filter-var.xml Log: added translation for filter functions

http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/configure.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/configure.xml +++ phpdoc-de/reference/filter/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <section id="filter.installation"> &reftitle.install; <para> Kurzer Installationshinweis: Geben Sie einfach <screen> $ pecl install filter </screen> auf der Konsole ein. </para> </section> <!-- 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/constants.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/constants.xml +++ phpdoc-de/reference/filter/constants.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- EN-Revision: 1.3 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <section id="filter.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term> <constant>INPUT_POST</constant> (<type>integer</type>) </term> <listitem> <simpara> <link linkend="reserved.variables.post">POST</link> Variablen. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>INPUT_GET</constant> (<type>integer</type>) </term> <listitem> <simpara> <link linkend="reserved.variables.get">GET</link> Variablen. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>INPUT_COOKIE</constant> (<type>integer</type>) </term> <listitem> <simpara> <link linkend="reserved.variables.cookies">COOKIE</link> Variablen. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>INPUT_ENV</constant> (<type>integer</type>) </term> <listitem> <simpara> <link linkend="reserved.variables.environment">ENV</link> Variablen. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>INPUT_SERVER</constant> (<type>integer</type>) </term> <listitem> <simpara> <link linkend="reserved.variables.server">SERVER</link> Variablen. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>INPUT_SESSION</constant> (<type>integer</type>) </term> <listitem> <simpara> <link linkend="reserved.variables.session">SESSION</link> Variablen. (noch nicht implementiert) </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>INPUT_REQUEST</constant> (<type>integer</type>) </term> <listitem> <simpara> <link linkend="reserved.variables.request">REQUEST</link> Variablen. (noch nicht implementiert) </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_NONE</constant> (<type>integer</type>) </term> <listitem> <simpara> Keine Flags. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_REQUIRE_SCALAR</constant> (<type>integer</type>) </term> <listitem> <simpara> Flag erfordert skalare Werte als Eingabe. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_REQUIRE_ARRAY</constant> (<type>integer</type>) </term> <listitem> <simpara> Erfordert ein Array als Eingabe. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FORCE_ARRAY</constant> (<type>integer</type>) </term> <listitem> <simpara> Gibt immer ein Array zurück. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_NULL_ON_FAILURE</constant> (<type>integer</type>) </term> <listitem> <simpara> NULL anstelle von FALSE bei Fehlern verwenden. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_VALIDATE_INT</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "int"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_VALIDATE_BOOLEAN</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "boolean"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_VALIDATE_FLOAT</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "float"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_VALIDATE_REGEXP</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "validate_regexp"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_VALIDATE_URL</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "validate_url"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_VALIDATE_EMAIL</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "validate_email"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_VALIDATE_IP</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "validate_ip"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_DEFAULT</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des Standard-Filter ("string"). </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_UNSAFE_RAW</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "unsafe_raw"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_STRING</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "string"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_STRIPPED</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "stripped"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_ENCODED</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "encoded"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_SPECIAL_CHARS</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "special_chars"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_EMAIL</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "email"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_URL</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "url"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_NUMBER_INT</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "number_int"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_NUMBER_FLOAT</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "number_float"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_SANITIZE_MAGIC_QUOTES</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "magic_quotes"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_CALLBACK</constant> (<type>integer</type>) </term> <listitem> <simpara> ID des "callback"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_ALLOW_OCTAL</constant> (<type>integer</type>) </term> <listitem> <simpara> Oktale Notation (<literal>0[0-7]+</literal>) im "int"-Filter erlauben. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_ALLOW_HEX</constant> (<type>integer</type>) </term> <listitem> <simpara> Hexadezimale Notation (<literal>0x[0-9a-fA-F]+</literal>) im "int"-Filter erlauben. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_STRIP_LOW</constant> (<type>integer</type>) </term> <listitem> <simpara> Zeichen mit einem ASCII-Wert kleiner 32 entfernen. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_STRIP_HIGH</constant> (<type>integer</type>) </term> <listitem> <simpara> Zeichen mit einem ASCII-Wert größer 127 entfernen. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_ENCODE_LOW</constant> (<type>integer</type>) </term> <listitem> <simpara> Zeichen mit einem ASCII-Werte kleiner 32 kodieren. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_ENCODE_HIGH</constant> (<type>integer</type>) </term> <listitem> <simpara> Zeichen mit einem ASCII-Werte größer 127 kodieren. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_ENCODE_AMP</constant> (<type>integer</type>) </term> <listitem> <simpara> <literal>&amp;</literal> kodieren. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant> (<type>integer</type>) </term> <listitem> <simpara> <literal>'</literal> und <literal>"</literal> nicht kodieren. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_EMPTY_STRING_NULL</constant> (<type>integer</type>) </term> <listitem> <simpara> (aktuell ohne Verwendung.) </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_ALLOW_FRACTION</constant> (<type>integer</type>) </term> <listitem> <simpara> Brüche im "number_float"-Filter erlauben. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_ALLOW_THOUSAND</constant> (<type>integer</type>) </term> <listitem> <simpara> Tausender-Trenner (<literal>,</literal>) im "number_float"-Filter erlauben. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_ALLOW_SCIENTIFIC</constant> (<type>integer</type>) </term> <listitem> <simpara> Exponentialschreibweise (<literal>e</literal>, <literal>E</literal>) im "number_float"-Filter erlauben. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_SCHEME_REQUIRED</constant> (<type>integer</type>) </term> <listitem> <simpara> Benötigt Schema im "validate_url"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_HOST_REQUIRED</constant> (<type>integer</type>) </term> <listitem> <simpara> Benötigt Host im "validate_url"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_PATH_REQUIRED</constant> (<type>integer</type>) </term> <listitem> <simpara> Benötigt Pfad im "validate_url"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_QUERY_REQUIRED</constant> (<type>integer</type>) </term> <listitem> <simpara> Benötigt Abfrage im "validate_url"-Filter. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_IPV4</constant> (<type>integer</type>) </term> <listitem> <simpara> Nur IPv4 Adressen im "validate_ip"-Filter erlauben. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_IPV6</constant> (<type>integer</type>) </term> <listitem> <simpara> Nur IPv6 Adressen im "validate_ip"-Filter erlauben. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_NO_RES_RANGE</constant> (<type>integer</type>) </term> <listitem> <simpara> Reservierte Adressen im "validate_ip"-Filter verweigern. </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>FILTER_FLAG_NO_PRIV_RANGE</constant> (<type>integer</type>) </term> <listitem> <simpara> Private Adressen im "validate_ip"-Filter verweigern. </simpara> </listitem> </varlistentry> </variablelist> </section> <!-- 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/ini.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/ini.xml +++ phpdoc-de/reference/filter/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.8 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <section id="filter.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Filter Konfigurationsoptionen</title> <tgroup cols="4"> <thead> <row> <entry>Name</entry> <entry>Grundeinstellung</entry> <entry>Änderbar</entry> <entry>Veränderungen</entry> </row> </thead> <tbody> <row> <entry>filter.default</entry> <entry>unsafe_raw</entry> <entry>PHP_INI_PERDIR</entry> <entry></entry> </row> <row> <entry>filter.default_flags</entry> <entry></entry> <entry>PHP_INI_PERDIR</entry> <entry></entry> </row> </tbody> </tgroup> </table> &ini.php.constants; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.filter.default"> <term> <parameter>filter.default</parameter> <type>string</type> </term> <listitem> <para> Standardfilter der zum Filtern aller $_GET, $_POST, $_COOKIE und $_REQUEST Daten verwendet werden soll. Auf die unveränderten Daten kann durch <function>filter_input</function> zugeriffen werden. </para> <para> Akzeptiert den Namen des Filters der standardmäßig verwendet werden soll. Die Namen der Filter können Sie der Liste der existierender Filter entnehmen. </para> </listitem> </varlistentry> <varlistentry id="ini.filter.default-flags"> <term> <parameter>filter.default_flags</parameter> <type>integer</type> </term> <listitem> <para> Standard-Flags </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/reference.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/reference.xml +++ phpdoc-de/reference/filter/reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.7 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <!-- Purpose: basic.vartype --> <!-- Membership: pecl --> <reference id="ref.filter"> <title>Filter Funktionen</title> <titleabbrev>Filter</titleabbrev> <partintro> <section id="filter.intro"> &reftitle.intro; <para> Diese Erweiterung validiert und filtert Daten die normalerweise aus unsicheren Quellen, wie z.B. Benutzereingaben, kommen. </para> <para> Die folgenden Filter sind aktuell verfügbar. Lesen Sie den Abschnitt <link linkend="filter.constants">Filter-Konstanten</link>, der das Verhalten der einzelnen Konstanten beschreibt: <table> <title>Verfügbare Filter</title> <tgroup cols="4"> <thead> <row> <entry>ID</entry> <entry>Name</entry> <entry>OptionEN</entry> <entry>Flags</entry> <entry>Beschreibung</entry> </row> </thead> <tbody> <row> <entry><constant>FILTER_VALIDATE_INT</constant></entry> <entry>"int"</entry> <entry> <parameter>min_range</parameter>, <parameter>max_range</parameter> </entry> <entry> <constant>FILTER_FLAG_ALLOW_OCTAL</constant>, <constant>FILTER_FLAG_ALLOW_HEX</constant> </entry> <entry>Validiert Werte als integer, optional ist der Wertebereich einschränkbar.</entry> </row> <row> <entry><constant>FILTER_VALIDATE_BOOLEAN</constant></entry> <entry>"boolean"</entry> <entry></entry> <entry></entry> <entry> Gibt &true; für "1", "true", "on" und "yes", &false; für "0", "false", "off", "no" und "" und &null; für sonstiges zurück. </entry> </row> <row> <entry><constant>FILTER_VALIDATE_FLOAT</constant></entry> <entry>"float"</entry> <entry></entry> <entry></entry> <entry>Validiert Werte als float.</entry> </row> <row> <entry><constant>FILTER_VALIDATE_REGEXP</constant></entry> <entry>"validate_regexp"</entry> <entry> <parameter>regexp</parameter> </entry> <entry></entry> <entry> Validiert Werte gegen <parameter>regexp</parameter>, einen <link linkend="ref.pcre">Perl kompatiblen</link> Regulären Ausdruck. </entry> </row> <row> <entry><constant>FILTER_VALIDATE_URL</constant></entry> <entry>"validate_url"</entry> <entry></entry> <entry> <constant>FILTER_FLAG_SCHEME_REQUIRED</constant>, <constant>FILTER_FLAG_HOST_REQUIRED</constant>, <constant>FILTER_FLAG_PATH_REQUIRED</constant>, <constant>FILTER_FLAG_QUERY_REQUIRED</constant> </entry> <entry>Validiert Werte als URL, optional einschränkbar auf benötigte URL-Komponenten.</entry> </row> <row> <entry><constant>FILTER_VALIDATE_EMAIL</constant></entry> <entry>"validate_email"</entry> <entry></entry> <entry></entry> <entry>Validiert Werte als E-Mail.</entry> </row> <row> <entry><constant>FILTER_VALIDATE_IP</constant></entry> <entry>"validate_ip"</entry> <entry></entry> <entry> <constant>FILTER_FLAG_IPV4</constant>, <constant>FILTER_FLAG_IPV6</constant>, <constant>FILTER_FLAG_NO_PRIV_RANGE</constant>, <constant>FILTER_FLAG_NO_RES_RANGE</constant> </entry> <entry> Validiert Werte als IP-Adresse, optional einschränkbar auf nur IPv4 oder IPv6 oder keine privaten oder reservierten Bereiche. </entry> </row> <row> <entry><constant>FILTER_SANITIZE_STRING</constant></entry> <entry>"string"</entry> <entry></entry> <entry> <constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant>, <constant>FILTER_FLAG_STRIP_LOW</constant>, <constant>FILTER_FLAG_STRIP_HIGH</constant>, <constant>FILTER_FLAG_ENCODE_LOW</constant>, <constant>FILTER_FLAG_ENCODE_HIGH</constant>, <constant>FILTER_FLAG_ENCODE_AMP</constant> </entry> <entry>Tags entfernen, optional können auch Sonderzeichen entfernt oder kodiert werden.</entry> </row> <row> <entry><constant>FILTER_SANITIZE_STRIPPED</constant></entry> <entry>"stripped"</entry> <entry></entry> <entry></entry> <entry>Alias für "string"-Filter.</entry> </row> <row> <entry><constant>FILTER_SANITIZE_ENCODED</constant></entry> <entry>"encoded"</entry> <entry></entry> <entry> <constant>FILTER_FLAG_STRIP_LOW</constant>, <constant>FILTER_FLAG_STRIP_HIGH</constant>, <constant>FILTER_FLAG_ENCODE_LOW</constant>, <constant>FILTER_FLAG_ENCODE_HIGH</constant> </entry> <entry>URL-kodierte Zeichenkette, optional können auch Sonderzeichen entfernt oder kodiert werden.</entry> </row> <row> <entry><constant>FILTER_SANITIZE_SPECIAL_CHARS</constant></entry> <entry>"special_chars"</entry> <entry></entry> <entry> <constant>FILTER_FLAG_STRIP_LOW</constant>, <constant>FILTER_FLAG_STRIP_HIGH</constant>, <constant>FILTER_FLAG_ENCODE_HIGH</constant> </entry> <entry> HTML-kodieren von <literal>'"&lt;&gt;&amp;</literal> und Zeichen mit einem ASCII-Wert kleiner 32, optional können andere Sonderzeichen entfernt oder kodiert werden. </entry> </row> <row> <entry><constant>FILTER_UNSAFE_RAW</constant></entry> <entry>"unsafe_raw"</entry> <entry></entry> <entry> <constant>FILTER_FLAG_STRIP_LOW</constant>, <constant>FILTER_FLAG_STRIP_HIGH</constant>, <constant>FILTER_FLAG_ENCODE_LOW</constant>, <constant>FILTER_FLAG_ENCODE_HIGH</constant>, <constant>FILTER_FLAG_ENCODE_AMP</constant> </entry> <entry>Keine Tätigkeit, optional können auch Sonderzeichen entfernt oder kodiert werden.</entry> </row> <row> <entry><constant>FILTER_SANITIZE_EMAIL</constant></entry> <entry>"email"</entry> <entry></entry> <entry></entry> <entry> Alle Zeichen außer Buchstaben, Zahlen und <literal>!#$%&amp;'*+-/=?^_`{|}~@.[]</literal> entfernen. </entry> </row> <row> <entry><constant>FILTER_SANITIZE_URL</constant></entry> <entry>"url"</entry> <entry></entry> <entry></entry> <entry> Alle Zeichen außer Buchstaben, Zahlen und <literal>$-_.+!*'(),{}|\\^~[]`&lt;&gt;#%";/?:@&amp;=</literal> entfernen. </entry> </row> <row> <entry><constant>FILTER_SANITIZE_NUMBER_INT</constant></entry> <entry>"number_int"</entry> <entry></entry> <entry></entry> <entry> Alle Zeichen außer Buchstaben, Zahlen und <literal>+-</literal> entfernen. </entry> </row> <row> <entry><constant>FILTER_SANITIZE_NUMBER_FLOAT</constant></entry> <entry>"number_float"</entry> <entry></entry> <entry> <constant>FILTER_FLAG_ALLOW_FRACTION</constant>, <constant>FILTER_FLAG_ALLOW_THOUSAND</constant>, <constant>FILTER_FLAG_ALLOW_SCIENTIFIC</constant> </entry> <entry> Alle Zeichen außer Buchstaben, Zahlen, <literal>+-</literal> und optional <literal>.,eE</literal> entfernen. </entry> </row> <row> <entry><constant>FILTER_SANITIZE_MAGIC_QUOTES</constant></entry> <entry>"magic_quotes"</entry> <entry></entry> <entry></entry> <entry><function>addslashes</function> anwenden.</entry> </row> <row> <entry><constant>FILTER_CALLBACK</constant></entry> <entry>"callback"</entry> <entry></entry> <entry><type>callback</type> function or method</entry> <entry>Benutzerdefinierte Funktion auf Filterdaten anwenden.</entry> </row> </tbody> </tgroup> </table> </para> </section> <section id="filter.requirements"> &reftitle.required; &no.requirement; </section> &reference.filter.configure; &reference.filter.ini; <section id="filter.resources"> &reftitle.resources; &no.resource; </section> &reference.filter.constants; </partintro> &reference.filter.functions; </reference> <!-- 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/functions/filter-has-var.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/functions/filter-has-var.xml +++ phpdoc-de/reference/filter/functions/filter-has-var.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.filter-has-var"> <refnamediv> <refname>filter_has_var</refname> <refpurpose>Prüft, ob eine Variable des angegebenen Typs existiert</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>filter_has_var</methodname> <methodparam><type>int</type><parameter>type</parameter></methodparam> <methodparam><type>string</type><parameter>variable_name</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>type</parameter></term> <listitem> <para> Einer von <constant>INPUT_GET</constant>, <constant>INPUT_POST</constant>, <constant>INPUT_COOKIE</constant>, <constant>INPUT_SERVER</constant>, <constant>INPUT_ENV</constant>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>variable_name</parameter></term> <listitem> <para> Name der Variablen. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/functions/filter-id.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/functions/filter-id.xml +++ phpdoc-de/reference/filter/functions/filter-id.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.filter-id"> <refnamediv> <refname>filter_id</refname> <refpurpose>Liefert die Filter-ID zu einem Filternamen</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>filter_id</methodname> <methodparam><type>string</type><parameter>filtername</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>filtername</parameter></term> <listitem> <para> Name des Filters. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> ID des Filters bei Erfolg oder &null;, wenn keine gefunden wurde. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>filter_list</function></member> </simplelist> </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/functions/filter-input-array.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/functions/filter-input-array.xml +++ phpdoc-de/reference/filter/functions/filter-input-array.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.4 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.filter-input-array"> <refnamediv> <refname>filter_input_array</refname> <refpurpose>Nimmt mehrere Variablen von Außen entgegen und filtert sie optional</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>filter_input_array</methodname> <methodparam><type>int</type><parameter>type</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>definition</parameter></methodparam> </methodsynopsis> <para> Diese Funktion ist sinnvoll um mehrere Wert abzufragen oder wiederholend <function>filter_input</function> aufrufen zu müssen. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>type</parameter></term> <listitem> <para> Einer von <constant>INPUT_GET</constant>, <constant>INPUT_POST</constant>, <constant>INPUT_COOKIE</constant>, <constant>INPUT_SERVER</constant>, <constant>INPUT_ENV</constant>, <constant>INPUT_SESSION</constant> oder <constant>INPUT_REQUEST</constant>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>definition</parameter></term> <listitem> <para> Array dass die Argumente enthält. Ein gültiger Key ist ein <type>string</type> der einen Variablennamen enthält und ein gültiger Wert ist entwedet ein Filter oder ein <type>array</type> welches den Filter, seine Flags und Optionen spezifiziert. Wenn der Wert ein Array ist, sind gültige Keys <literal>filter</literal> der den Filtertyp definiert, <literal>flags</literal> welches jegliche Flags die den Filter spezifizieren enthält und <literal>options</literal> welches die Optionen enthält to den Filter beschreiben. Für ein besseres Verständnis sehen Sie sich das Beispiel an. </para> <para> Der Parameter kann auch ein Integer sein der eine <link linkend="filter.intro">Filterkonstante</link> beschreibt. Dann werden alle Werte des Arrays durch diesen Filter gefiltert. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Bei Erfolg wird ein Array zurückgegeben, welches alle Werte der angefragten Variablen enthält oder &false; im Fehlerfall. Ein einzelner Array-Wert ist &false;, wenn das Filtern fehlgeschlagen ist oder &null;, wenn die Variable nicht gesetzt ist. Wenn das Flag <constant>FILTER_NULL_ON_FAILURE</constant> benutzt wurde, wird &false; zurückgegeben, wenn die Variable nicht gesetzt ist und &null;, wenn das Filtern fehlgeschlagen ist. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>filter_input_array</function> Beispiel</title> <programlisting role="php"> <![CDATA[ <?php error_reporting(E_ALL | E_STRICT); /* data actually came from POST $_POST = array( 'product_id' => 'libgd<script>', 'component' => '10', 'versions' => '2.0.33', 'testscalar' => array('2', '23', '10', '12'), 'testarray' => '2', ); */ $args = array( 'product_id' => FILTER_SANITIZE_ENCODED, 'component' => array('filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_FLAG_ARRAY, 'options' => array('min_range' => 1, 'max_range' => 10) ), 'versions' => FILTER_SANITIZE_ENCODED, 'doesnotexist' => FILTER_VALIDATE_INT, 'testscalar' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_FLAG_SCALAR, ), 'testarray' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_FLAG_ARRAY, ) ); $myinputs = filter_input_array(INPUT_POST, $args); var_dump($myinputs); echo "\n"; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ array(6) { ["product_id"]=> array(1) { [0]=> string(17) "libgd%3Cscript%3E" } ["component"]=> array(1) { [0]=> int(10) } ["versions"]=> array(1) { [0]=> string(6) "2.0.33" } ["doesnotexist"]=> NULL ["testscalar"]=> bool(false) ["testarray"]=> array(1) { [0]=> int(2) } } ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>filter_input</function></member> <member><function>filter_var_array</function></member> </simplelist> </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/functions/filter-input.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/functions/filter-input.xml +++ phpdoc-de/reference/filter/functions/filter-input.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.filter-input"> <refnamediv> <refname>filter_input</refname> <refpurpose>Nimmt Variable von Außen entgegen und filtert sie optional</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>filter_input</methodname> <methodparam><type>int</type><parameter>type</parameter></methodparam> <methodparam><type>string</type><parameter>variable_name</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>filter</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>options</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>type</parameter></term> <listitem> <para> Einer von <constant>INPUT_GET</constant>, <constant>INPUT_POST</constant>, <constant>INPUT_COOKIE</constant>, <constant>INPUT_SERVER</constant>, <constant>INPUT_ENV</constant>, <constant>INPUT_SESSION</constant> (not implemented yet) and <constant>INPUT_REQUEST</constant> (not implemented yet). </para> </listitem> </varlistentry> <varlistentry> <term><parameter>variable_name</parameter></term> <listitem> <para> Name der Variablen. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>filter</parameter></term> <listitem> <para> Anzuwendender Filter. Standard ist <constant>FILTER_DEFAULT</constant>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>options</parameter></term> <listitem> <para> Assoziatives Array mit Optionen oder bitweise Disjunktion von Flags. Wenn der Filter Optionen akzeptiert, können Flags auch im "flags" Feld des Arrays angegeben werden. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Bei Erfolg wird der Wert zurückgegeben, &false; im Fehlerfall oder &null;, wenn die Variable <parameter>variable_name</parameter> nicht gesetzt ist. Wenn das Flag <constant>FILTER_NULL_ON_FAILURE</constant> benutzt wurde, wird &false; zurückgegeben, wenn die Variable nicht gesetzt ist und &null;, wenn das Filtern fehlgeschlagen ist. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>filter_input</function> Beispiel</title> <programlisting role="php"> <![CDATA[ <?php $search_html = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_SPECIAL_CHARS); $search_url = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_ENCODED); echo "You have searched for $search_html.\n"; echo "<a href='?search=$search_url'>Search again.</a>"; ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ You have searched for Me &#38; son. <a href='?search=Me%20%26%20son'>Search again.</a> ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>filter_var</function></member> <member><function>filter_input_array</function></member> <member><function>filter_var_array</function></member> </simplelist> </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/functions/filter-list.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/functions/filter-list.xml +++ phpdoc-de/reference/filter/functions/filter-list.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.filter-list"> <refnamediv> <refname>filter_list</refname> <refpurpose>Liefert eine Liste aller unterstützten Filter</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>array</type><methodname>filter_list</methodname> <void/> </methodsynopsis> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Liefert ein Array mit den Namen aller unterstützter Filter oder ein leeres Array, wenn keine Filter zur Verfügung stehen. Der Index des Arrazs entspricht nicht der Filter-ID, diese kann durch die Funktion <function>filter_id</function> ermittelt werden. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>filter_list</function> Beispiel</title> <programlisting role="php"> <![CDATA[ <?php print_r(filter_list()); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [0] => int [1] => boolean [2] => float [3] => validate_regexp [4] => validate_url [5] => validate_email [6] => validate_ip [7] => string [8] => stripped [9] => encoded [10] => special_chars [11] => unsafe_raw [12] => email [13] => url [14] => number_int [15] => number_float [16] => magic_quotes [17] => callback ) ]]> </screen> </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/functions/filter-var-array.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/functions/filter-var-array.xml +++ phpdoc-de/reference/filter/functions/filter-var-array.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.6 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.filter-var-array"> <refnamediv> <refname>filter_var_array</refname> <refpurpose>Nimmt mehrere Variablen entgegen und filtert sie optional</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>filter_var_array</methodname> <methodparam><type>array</type><parameter>data</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>definition</parameter></methodparam> </methodsynopsis> <para> Diese Funktion ist sinnvoll um mehrere Wert abzufragen oder wiederholend <function>filter_var</function> aufrufen zu müssen. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>data</parameter></term> <listitem> <para> Ein Array mit String-Keys, welches die zu filternden Daten enthält. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>definition</parameter></term> <listitem> <para> Array dass die Argumente enthält. Ein gültiger Key ist ein <type>string</type> der einen Variablennamen enthält und ein gültiger Wert ist entwedet ein Filter oder ein <type>array</type> welches den Filter, seine Flags und Optionen spezifiziert. Wenn der Wert ein Array ist, sind gültige Keys <literal>filter</literal> der den Filtertyp definiert, <literal>flags</literal> welches jegliche Flags die den Filter spezifizieren enthält und <literal>options</literal> welches die Optionen enthält to den Filter beschreiben. Für ein besseres Verständnis sehen Sie sich das Beispiel an. </para> <para> Der Parameter kann auch ein Integer sein der eine <link linkend="filter.intro">Filterkonstante</link> beschreibt. Dann werden alle Werte des Arrays durch diesen Filter gefiltert. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Bei Erfolg wird ein Array zurückgegeben, welches alle Werte der angefragten Variablen enthält oder &false; im Fehlerfall. Ein einzelner Array-Wert ist &false;, wenn das Filtern fehlgeschlagen ist oder &null;, wenn die Variable nicht gesetzt ist. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>filter_var_array</function> Beispiel</title> <programlisting role="php"> <![CDATA[ <?php error_reporting(E_ALL | E_STRICT); $data = array( 'product_id' => 'libgd<script>', 'component' => '10', 'versions' => '2.0.33', 'testscalar' => array('2', '23', '10', '12'), 'testarray' => '2', ); $args = array( 'product_id' => FILTER_SANITIZE_ENCODED, 'component' => array('filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_FORCE_ARRAY, 'options' => array('min_range' => 1, 'max_range' => 10) ), 'versions' => FILTER_SANITIZE_ENCODED, 'doesnotexist' => FILTER_VALIDATE_INT, 'testscalar' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, ), 'testarray' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_FORCE_ARRAY, ) ); $myinputs = filter_var_array($data, $args); var_dump($myinputs); echo "\n"; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ array(6) { ["product_id"]=> array(1) { [0]=> string(17) "libgd%3Cscript%3E" } ["component"]=> array(1) { [0]=> int(10) } ["versions"]=> array(1) { [0]=> string(6) "2.0.33" } ["doesnotexist"]=> NULL ["testscalar"]=> bool(false) ["testarray"]=> array(1) { [0]=> int(2) } } ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>filter_input_array</function></member> <member><function>filter_var</function></member> <member><function>filter_input</function></member> </simplelist> </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/filter/functions/filter-var.xml?view=markup&rev=1.1 Index: phpdoc-de/reference/filter/functions/filter-var.xml +++ phpdoc-de/reference/filter/functions/filter-var.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: timo Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.filter-var"> <refnamediv> <refname>filter_var</refname> <refpurpose>Filtern einer Variablen durch einen spezifischen Filter.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>filter_var</methodname> <methodparam><type>mixed</type><parameter>variable</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>filter</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>options</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>variable</parameter></term> <listitem> <para> Wert der gefiltert werden soll. Arrays werden rekursiv gefiltert. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>filter</parameter></term> <listitem> <para> ID des zu benutztenden Filters. Standard ist <constant>FILTER_SANITIZE_STRING</constant>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>options</parameter></term> <listitem> <para> Assoziatives Array mit Optionen oder bitweise Disjunktion von Flags. Wenn der Filter Optionen akzeptiert, können Flags auch im "flags" Feld des Arrays angegeben werden. Für "callback" Filter sollte der <type>callback</type>-Typ angegeben werden. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Gibt die gefilterten Daten zurück oder &false; wenn fehlgeschlagen. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>filter_var</function> Beispiel</title> <programlisting role="php"> <![CDATA[ <?php var_dump(filter_var('bob@example.com', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('example.com', FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ string(15) "bob@example.com" bool(false) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>filter_var_array</function></member> <member><function>filter_input</function></member> <member><function>filter_input_array</function></member> <member>&seealso.callback;</member> </simplelist> </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 -->
« previous php.doc.de (#2163) next »