svn: /phpdoc/en/trunk/reference/strings/functions/ hex2bin.xml

From: Date: Sun, 18 Dec 2011 16:47:28 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ hex2bin.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9242@lists.php.net to get a copy of this message
bjori Sun, 18 Dec 2011 16:47:28 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=321135 Log: kill undocument warning Changed paths: U phpdoc/en/trunk/reference/strings/functions/hex2bin.xml Modified: phpdoc/en/trunk/reference/strings/functions/hex2bin.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/hex2bin.xml 2011-12-18 16:26:33 UTC (rev 321134) +++ phpdoc/en/trunk/reference/strings/functions/hex2bin.xml 2011-12-18 16:47:28 UTC (rev 321135) @@ -4,7 +4,7 @@ <refentry xml:id="function.hex2bin" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>hex2bin</refname> - <refpurpose>Converts the hex representation of data to binary</refpurpose> + <refpurpose>Convert hex to binary</refpurpose> </refnamediv> <refsect1 role="description"> @@ -14,11 +14,8 @@ <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> - + Converts the hex representation of data to binary </para> - - &warn.undocumented.func; - </refsect1> <refsect1 role="parameters"> @@ -42,6 +39,27 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <example xml:id="hex2bin.example.basic"> + <title><function>hex2bin</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$hex = hex2bin("6578616d706c65206865782064617461"); +var_dump($hex); +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +string(16) "example hex data" +]]> + </screen> + </example> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para>

« previous php.doc.cvs (#9242) next »