- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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::isJavaIDPart() function in PHP
The IntlChar::isJavaIDPart() function is used to check whether the entered character is permissible in a java identifier character or not.
Syntax
IntlChar::isJavaIDPart( val )
Parameters
val − A character or integer value encoded as a UTF-8 string.
Return
The IntlChar::isJavaIDPart()function returns TRUE if val is a Java identifier character.
Example
The following is an example −
<?php var_dump(IntlChar::isJavaIDPart("t")); echo "<br>"; var_dump(IntlChar::isJavaIDPart("A")); echo "<br>"; var_dump(IntlChar::isJavaIDPart(" ")); echo "<br>"; var_dump(IntlChar::isJavaIDPart("88")); echo "<br>"; ?>
Output
The following is the output −
bool(true) bool(true) bool(false) NULL
Advertisements