IntlChar charType() ফাংশনটি প্রবেশ করা মানের জন্য সাধারণ বিভাগ মান পেতে ব্যবহৃত হয়।
সিনট্যাক্স
int IntlChar::charType (val)
পরামিতি
-
val − UTF-8 স্ট্রিং হিসাবে এনকোড করা একটি পূর্ণসংখ্যা বা অক্ষর৷
৷
ফেরত
IntlChar charType() ফাংশন নিম্নলিখিত সাধারণ বিভাগের বিষয়বস্তু প্রদান করে −
-
IntlChar::CHAR_CATEGORY_UNASSIGNED
-
IntlChar::CHAR_CATEGORY_GENERAL_OTHER_TYPES
-
IntlChar::CHAR_CATEGORY_UPPERCASE_LETTER
-
IntlChar::CHAR_CATEGORY_LOWERCASE_LETTER
-
IntlChar::CHAR_CATEGORY_TITLECASE_LETTER
-
IntlChar::CHAR_CATEGORY_MODIFIER_LETTER
-
IntlChar::CHAR_CATEGORY_OTHER_LETTER
-
IntlChar::CHAR_CATEGORY_NON_SPACING_MARK
-
IntlChar::CHAR_CATEGORY_ENCLOSING_MARK
-
IntlChar::CHAR_CATEGORY_COMBINING_SPACING_MARK
-
IntlChar::CHAR_CATEGORY_DECIMAL_DIGIT_NUMBER
-
IntlChar::CHAR_CATEGORY_LETTER_NUMBER
-
IntlChar::CHAR_CATEGORY_OTHER_NUMBER
-
IntlChar::CHAR_CATEGORY_SPACE_SEPARATOR
-
IntlChar::CHAR_CATEGORY_LINE_SEPARATOR
-
IntlChar::CHAR_CATEGORY_PARAGRAPH_SEPARATOR
-
IntlChar::CHAR_CATEGORY_CONTROL_CHAR
-
IntlChar::CHAR_CATEGORY_FORMAT_CHAR
-
IntlChar::CHAR_CATEGORY_PRIVATE_USE_CHAR
-
IntlChar::CHAR_CATEGORY_SURROGATE
-
IntlChar::CHAR_CATEGORY_DASH_PUNCTUATION
-
IntlChar::CHAR_CATEGORY_START_PUNCTUATION
-
IntlChar::CHAR_CATEGORY_END_PUNCTUATION
-
IntlChar::CHAR_CATEGORY_CONNECTOR_PUNCTUATION
-
IntlChar::CHAR_CATEGORY_OTHER_PUNCTUATION
-
IntlChar::CHAR_CATEGORY_MATH_SYMBOL
-
IntlChar::CHAR_CATEGORY_CURRENCY_SYMBOL
-
IntlChar::CHAR_CATEGORY_MODIFIER_SYMBOL
-
IntlChar::CHAR_CATEGORY_OTHER_SYMBOL
-
IntlChar::CHAR_CATEGORY_INITIAL_PUNCTUATION
-
IntlChar::CHAR_CATEGORY_FINAL_PUNCTUATION
-
IntlChar::CHAR_CATEGORY_CHAR_CATEGORY_COUNT
উদাহরণ
নিম্নলিখিত একটি উদাহরণ -
<?php var_dump(IntlChar::charType("n") === IntlChar::CHAR_CATEGORY_CONTROL_CHAR); echo "<br>"; var_dump(IntlChar::charType("jkl") === IntlChar::CHAR_CATEGORY_OTHER_PUNCTUATION); echo "<br>"; var_dump(IntlChar::charType("r") === IntlChar::CHAR_CATEGORY_CONTROL_CHAR); echo "<br>"; var_dump(IntlChar::charType("Z") === IntlChar::CHAR_CATEGORY_UPPERCASE_LETTER); echo "<br>"; var_dump(IntlChar::charType(".") === IntlChar::CHAR_CATEGORY_OTHER_PUNCTUATION); echo "<br>"; ?>
আউটপুট
নিচের আউটপুট −
bool(false) bool(false) bool(false) bool(true) bool(true)