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)
Updated on: 2019-12-30T08:11:12+05:30

92 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements