cvs: phpdoc-de /reference/misc/functions halt-compiler.xml /reference/var/functions gettype.xml is-binary.xml is-null.xml is-unicode.xml

From: Date: Sun, 19 Oct 2008 17:28:29 +0000
Subject: cvs: phpdoc-de /reference/misc/functions halt-compiler.xml /reference/var/functions gettype.xml is-binary.xml is-null.xml is-unicode.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-2842@lists.php.net to get a copy of this message
hholzgra Sun Oct 19 17:28:29 2008 UTC Modified files: /phpdoc-de/reference/misc/functions halt-compiler.xml /phpdoc-de/reference/var/functions gettype.xml is-binary.xml is-null.xml is-unicode.xml Log: translation updates http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/misc/functions/halt-compiler.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-de/reference/misc/functions/halt-compiler.xml diff -u phpdoc-de/reference/misc/functions/halt-compiler.xml:1.3 phpdoc-de/reference/misc/functions/halt-compiler.xml:1.4 --- phpdoc-de/reference/misc/functions/halt-compiler.xml:1.3 Sun Aug 10 19:20:37 2008 +++ phpdoc-de/reference/misc/functions/halt-compiler.xml Sun Oct 19 17:28:28 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.6 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: hholzgra Status: ready --> <refentry xml:id="function.halt-compiler" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>__halt_compiler</refname> @@ -53,7 +53,7 @@ var_dump(stream_get_contents($fp)); // hier Kompilation beendenn -__halt_compiler();ab hier die eigentlichen Daten (z.B.. tar, gz, PHP, etc.) +__halt_compiler(); ab hier die eigentlichen Daten (z.B.. tar, gz, PHP, etc.) ]]> </programlisting> </example> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/var/functions/gettype.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-de/reference/var/functions/gettype.xml diff -u phpdoc-de/reference/var/functions/gettype.xml:1.6 phpdoc-de/reference/var/functions/gettype.xml:1.7 --- phpdoc-de/reference/var/functions/gettype.xml:1.6 Sat Aug 9 11:30:46 2008 +++ phpdoc-de/reference/var/functions/gettype.xml Sun Oct 19 17:28:28 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.11 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.12 Maintainer: hholzgra Status: ready --> <!-- Credits: fa --> <refentry xml:id="function.gettype" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -81,7 +81,40 @@ </listitem> </itemizedlist> </para> - </refsect1> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>gettype</function> Beispiel</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$data = array(1, 1., NULL, new stdClass, 'foo'); + +foreach ($data as $value) { + echo gettype($value), "\n"; +} + +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +integer +double +NULL +object +string +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/var/functions/is-binary.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-de/reference/var/functions/is-binary.xml diff -u phpdoc-de/reference/var/functions/is-binary.xml:1.3 phpdoc-de/reference/var/functions/is-binary.xml:1.4 --- phpdoc-de/reference/var/functions/is-binary.xml:1.3 Sun Aug 10 19:20:38 2008 +++ phpdoc-de/reference/var/functions/is-binary.xml Sun Oct 19 17:28:28 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.2 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: hholzgra Status: ready --> <refentry xml:id="function.is-binary" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>is_binary</refname> @@ -42,6 +42,38 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_binary</function> Beispiel</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Deklariert einen Unicode String +$unicode = 'Dies ist ein Unicode String'; + + +// Deklariert einen Binärstring mit dem 'b' Prefix +// Dieser ist ab PHP 5.2.1 verfügbar, wirt aber +// erst ab PHP 6.0.0 tatsächliche Auswirkungen haben +$binary = b'Dies ist ein Binärstring'; + +var_dump(is_binary($unicode), is_binary($binary)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +bool(false) +bool(true) +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/var/functions/is-null.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-de/reference/var/functions/is-null.xml diff -u phpdoc-de/reference/var/functions/is-null.xml:1.3 phpdoc-de/reference/var/functions/is-null.xml:1.4 --- phpdoc-de/reference/var/functions/is-null.xml:1.3 Sun Aug 10 19:20:38 2008 +++ phpdoc-de/reference/var/functions/is-null.xml Sun Oct 19 17:28:28 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.8 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: hholzgra Status: ready --> <refentry xml:id="function.is-null" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>is_null</refname> @@ -40,6 +40,33 @@ sonst &false;. </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_null</function> Beispiel</title> + <programlisting role="php"> +<![CDATA[ +<?php + +error_reporting(E_ALL); + +$foo = NULL; +var_dump(is_null($inexistent), is_null($foo)); + +?> +]]> + </programlisting> + <screen> +<![CDATA[ +Notice: Undefined variable: inexistent in ... +bool(true) +bool(true) +]]> + </screen> + </example> + </para> + </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/var/functions/is-unicode.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-de/reference/var/functions/is-unicode.xml diff -u phpdoc-de/reference/var/functions/is-unicode.xml:1.3 phpdoc-de/reference/var/functions/is-unicode.xml:1.4 --- phpdoc-de/reference/var/functions/is-unicode.xml:1.3 Sun Aug 10 19:20:38 2008 +++ phpdoc-de/reference/var/functions/is-unicode.xml Sun Oct 19 17:28:28 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.2 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: hholzgra Status: ready --> <refentry xml:id="function.is-unicode" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>is_unicode</refname> @@ -42,6 +42,35 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_unicode</function> Beispiel</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Deklariert einen Unicode String +$unicode = 'Dies ist ein Unicode String'; + +// Deklariert einen Binärstring +$binary = b'Dies ist ein Binärstring'; + +var_dump(is_unicode($unicode), is_bunicode($binary)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +bool(true) +bool(false) +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para>

« previous php.doc.de (#2842) next »