File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 16
16
<methodparam choice =" opt" ><type >array</type ><parameter role =" reference" >idna_info</parameter ><initializer >&null; </initializer ></methodparam >
17
17
</methodsynopsis >
18
18
<para >
19
- This function converts a Unicode domain name to an IDNA ASCII-compatible format.
19
+ This function converts a Unicode domain name to an IDNA ASCII-compatible format in lowercase.
20
20
</para >
21
21
</refsect1 >
22
22
@@ -129,6 +129,24 @@ echo idn_to_ascii('täst.de');
129
129
<screen >
130
130
<![CDATA[
131
131
xn--tst-qla.de
132
+ ]]>
133
+ </screen >
134
+ <example >
135
+ <title >All-ASCII domain names are just converted to lowercase</title >
136
+ <programlisting role =" php" >
137
+ <![CDATA[
138
+ <?php
139
+
140
+ var_dump(idn_to_ascii('Example.com'));
141
+
142
+ ?>
143
+ ]]>
144
+ </programlisting >
145
+ </example >
146
+ &example.outputs;
147
+ <screen >
148
+ <![CDATA[
149
+ string(11) "example.com"
132
150
]]>
133
151
</screen >
134
152
</refsect1 >
You can’t perform that action at this time.
0 commit comments