Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
IntlChar::isIDPart() function in PHP
The IntlChar::isIDPart() function is used to check whether the entered character is an identifier or not
Syntax
bool IntlChar::isIDPart(val)
Parameters
val − A character value encoded as a UTF-8 string.
Return
The IntlChar::isIDPart()function returns TRUE if the entered value is an identifier character.
Example
The following is an example −
<?php
var_dump(IntlChar::isIDPart("J"));
echo "<br>";
var_dump(IntlChar::isIDPart("j"));
echo "<br>";
var_dump(IntlChar::isIDPart("&"));
echo "<br>";
var_dump(IntlChar::isIDPart("12"));
echo "<br>";
?>
Output
The following is the output −
bool(true) bool(true) bool(false) NULL
Advertisements