IntlChar::isblank() function in PHP


TheIntlChar::isblank() function checks whether the entered value isblank or horizontal space character.

Syntax

IntlChar::isblank (val)

Parameters

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

Return

The IntlChar::isblank() function returns TRUE if the entered value isblank or horizontal space character.

Example

The following is an example −

<?php
   var_dump(IntlChar::isblank(" "));
   echo "<br>";
   var_dump(IntlChar::isblank("* "));
   echo "<br>";
   var_dump(IntlChar::isblank("8"));
   echo "<br>";
   var_dump(IntlChar::isblank("n"));
?>

Output

The following is the output −

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

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 30-Dec-2019

43 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements