IntlChar::isUWhiteSpace() function in PHP


The IntlChar::isUWhiteSpace() function check whether the given input character is a WhiteSpace Unicode character or not.

Syntax

IntlChar::isUWhiteSpace(val)

Parameters

  • val − A character or integer value encoded as a UTF-8 string.

Return

The IntlChar::isUWhiteSpace() function returns TRUE if the val is a WhiteSpace Unicode character.

Example

The following is an example −

<?php
   var_dump(IntlChar::isUWhiteSpace("
"));    echo "<br>";    var_dump(IntlChar::isUWhiteSpace("A"));    echo "<br>";    var_dump(IntlChar::isUWhiteSpace("*")); ?>

Output

The following is the output −

bool(true)
bool(false)
bool(false)

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 30-Dec-2019

47 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements