[doc-en] master: Update idn-to-ascii.xml: Adding info about conversion to lowercase (#4505)

From: Date: Thu, 24 Apr 2025 14:25:49 +0000
Subject: [doc-en] master: Update idn-to-ascii.xml: Adding info about conversion to lowercase (#4505)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-22637@lists.php.net to get a copy of this message
Author: Thomas Landauer (ThomasLandauer) Committer: GitHub (web-flow) Pusher: vrana Date: 2025-04-24T16:15:34+02:00 Commit: https://github.com/php/doc-en/commit/e908bfda98eb9fe16fb2c1b5773f312e5c684ee3 Raw diff: https://github.com/php/doc-en/commit/e908bfda98eb9fe16fb2c1b5773f312e5c684ee3.diff Update idn-to-ascii.xml: Adding info about conversion to lowercase (#4505) This would close https://bugs.php.net/bug.php?id=80922 Changed paths: M reference/intl/idn/idn-to-ascii.xml Diff: diff --git a/reference/intl/idn/idn-to-ascii.xml b/reference/intl/idn/idn-to-ascii.xml index 07aa637fa5a4..6e9c212cd03b 100644 --- a/reference/intl/idn/idn-to-ascii.xml +++ b/reference/intl/idn/idn-to-ascii.xml @@ -16,7 +16,7 @@ <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> - This function converts a Unicode domain name to an IDNA ASCII-compatible format. + This function converts a Unicode domain name to an IDNA ASCII-compatible format in lowercase. </para> </refsect1> @@ -129,6 +129,24 @@ echo idn_to_ascii('täst.de'); <screen> <![CDATA[ xn--tst-qla.de +]]> + </screen> + <example> + <title>All-ASCII domain names are just converted to lowercase</title> + <programlisting role="php"> +<![CDATA[ +<?php + +var_dump(idn_to_ascii('Example.com')); + +?> +]]> + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ +string(11) "example.com" ]]> </screen> </refsect1>

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