Change language

PHP IntlChar function enumCharNames ()

Syntax:
void IntlChar::enumCharNames ($start, $limit, $callback, $nameChoice = IntlChar::UNICODE_CHAR_NAME)
Parameters:This function takes four parameters as specified and described below:
  • start:This parameter contains the first code point in the enumeration range.
  • limit:this parameter contains one more point than the last point in the range.
  • callback: for each symbol name, the function to be called. This function takes three parameters, which are listed below:
    • $codepoint:contains the value of the numeric codepoint.
    • $nameChoice:contains nameChoice value.
    • $name:contains the name of the character.
  • nameChoice:types of names to be listed. It can be any of these five specified constants:
    • IntlChar::UNICODE_CHAR_NAME (default constant)
    • IntlChar::CHAR_NAME_ALIAS
    • IntlChar::CHAR_NAME_CHOICE_COUNT
    • IntlChar::EXTENDED_CHAR_NAME
    • IntlChar::UNICODE_10_CHAR_NAME
Returned values:this function does not return any value.The program below illustrates the IntlChar::enumCharNames() functionin PHP:Program:  
// PHP program for using IntlChar::enumCharNames()
// function
IntlChar::enumCharNames (0x2700, 0x2710, fu nction ( $codepoint , $nameChoice , $name ) { printf ( "U +% 04x% s" , $codepoint , $name ); });  
?>
Output:
U + 2700 BLACK SAFETY SCISSORS U + 2701 UPPER BLADE SCISSORS U + 2702 BLACK SCISSORS U + 2703 LOWER BLADE SCISSORS U + 2704 WHITE SCISSORS U + 2705 WHITE HEAVY CHECK MARK U + 2706 TELEPHONE LOCATION SIGN U + 2707 TAPE DRIVE U + 2708 AIRPLANE U + 2709 ENVELOPE U + 270a RAISED FIST U + 270b RAISED HAND U + 270c VICTORY HAND U + 270d WRITING HAND U + 270e LOWER RIGHT PENCIL U + 270f PENCIL
Link: https://www.php.net/manual/en/intlchar.enumcharnames.php

Shop

Learn programming in R: courses

$

Best Python online courses for 2022

$

Best laptop for Fortnite

$

Best laptop for Excel

$

Best laptop for Solidworks

$

Best laptop for Roblox

$

Best computer for crypto mining

$

Best laptop for Sims 4

$

Latest questions

NUMPYNUMPY

Common xlabel/ylabel for matplotlib subplots

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Why do I get "Pickle - EOFError: Ran out of input" reading an empty file?

12 answers

NUMPYNUMPY

Flake8: Ignore specific warning for entire file

12 answers

NUMPYNUMPY

glob exclude pattern

12 answers

NUMPYNUMPY

How to avoid HTTP error 429 (Too Many Requests) python

12 answers

NUMPYNUMPY

Python CSV error: line contains NULL byte

12 answers

NUMPYNUMPY

csv.Error: iterator should return strings, not bytes

12 answers


Wiki

Python | How to copy data from one Excel sheet to another

Common xlabel/ylabel for matplotlib subplots

Check if one list is a subset of another in Python

sin

How to specify multiple return types using type-hints

exp

Printing words vertically in Python

exp

Python Extract words from a given string

Cyclic redundancy check in Python

Finding mean, median, mode in Python without libraries

cos

Python add suffix / add prefix to strings in a list

Why do I get "Pickle - EOFError: Ran out of input" reading an empty file?

Python - Move item to the end of the list

Python - Print list vertically