mirror of
https://github.com/php/doc-fr.git
synced 2026-03-24 07:02:06 +01:00
- echo.xml: translate English code comments in tip section - hebrev.xml, hebrevc.xml: fix "hébreux" → "hébreu" - hex2bin.xml: fix "héxadécimale" → "hexadécimale" - print.xml: translate all English code comments to French - ucwords.xml: fix awkward example title grammar - utf8-decode.xml, utf8-encode.xml: translate English code comments in notes section - html-entity-decode.xml, htmlentities.xml, htmlspecialchars-decode.xml, ltrim.xml, number-format.xml, parse-str.xml, quoted-printable-decode.xml, sha1.xml, stripslashes.xml, stristr.xml, strstr.xml: fixes from prior review
111 lines
2.8 KiB
XML
111 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: e095023e408c8cb6378ae16bb6870343a3946919 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes Maintainer: yannick -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.hex2bin">
|
|
<refnamediv>
|
|
<refname>hex2bin</refname>
|
|
<refpurpose>Convertit une chaîne encodée en hexadécimal vers du binaire</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type class="union"><type>string</type><type>false</type></type><methodname>hex2bin</methodname>
|
|
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Convertit une chaîne binaire encodée en hexadécimal.
|
|
</para>
|
|
<caution>
|
|
<para>
|
|
Cette fonction ne convertit <emphasis>PAS</emphasis> un nombre hexadécimal
|
|
en un nombre binaire. Cela peut être réalisé en utilisant la fonction
|
|
<function>base_convert</function>.
|
|
</para>
|
|
</caution>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>string</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Représentation hexadécimale de la donnée.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retourne la représentation binaire de la donnée &return.falseforfailure;.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="errors">
|
|
&reftitle.errors;
|
|
<para>
|
|
Si la chaîne d'entrée en hexadécimale est d'une longueur impaire ou
|
|
si la chaîne en hexadécimale est invalide, une alerte de niveau
|
|
<constant>E_WARNING</constant> sera émise.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<example xml:id="hex2bin.example.basic">
|
|
<title>Exemple avec <function>hex2bin</function></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>
|
|
<simplelist>
|
|
<member><function>bin2hex</function></member>
|
|
<member><function>unpack</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:"~/.phpdoc/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
|
|
-->
|