IntlChar isdefined() function in PHP

PHPServer Side ProgrammingProgramming

<p>The IntlChar isdefined() function checks whether the entered value is defined or not.</p><h2>Syntax</h2><pre class="result notranslate">bool IntlChar::isdefined (val)</pre><h2>Parameters</h2><ul class="list"><li><p>val &minus; An integer or character encoded as a UTF-8 string.</p></li></ul><h2>Return</h2><p>The IntlChar isdefined() function returns TRUE if val is a defined character.</p><h2>Example</h2><p>The following is an example &minus;</p><pre class="prettyprint notranslate">&lt;?php &nbsp; &nbsp;var_dump(IntlChar::isdefined(&quot;Z&quot;)); &nbsp; &nbsp;echo &quot;&lt;br&gt;&quot;; &nbsp; &nbsp;var_dump(IntlChar::isdefined(&quot; &quot;)); &nbsp; &nbsp;echo &quot;&lt;br&gt;&quot;; &nbsp; &nbsp;var_dump(IntlChar::isdefined(&quot;HJHK&quot;)); &nbsp; &nbsp;echo &quot;&lt;br&gt;&quot;; &nbsp; &nbsp;var_dump(IntlChar::isdefined(&quot;89&quot;)); ?&gt;</pre><h2>Output</h2><p>The following is the output &minus;</p><pre class="result notranslate">bool(true) bool(true) NULL NULL</pre>
raja
Updated on 31-Dec-2019 06:36:29

Advertisements