PHP code example of benemohamed / unicodeblock
1. Go to this page and download the library: Download benemohamed/unicodeblock library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
benemohamed / unicodeblock example snippets
// Import Unicodeblock
use Benemohamed\Unicodeblock\UnicodeBlock;
var_dump(UnicodeBlock::Arabic('يبيسب'));
/*
-- outputs:
array(5) {
'is' =>
bool(true)
'block1' =>
int(1536)
'block2' =>
int(1791)
'Unicode_name' =>
string(6) "Arabic"
'check_list' =>
array(1) {
[0] =>
array(255) {
(more elements)...
(more elements)...
[118] =>
string(2) "ٶ"
[119] =>
string(2) "ٷ"
[120] =>
string(2) "ٸ"
[121] =>
string(2) "ٹ"
[122] =>
string(2) "ٺ"
[123] =>
string(2) "ٻ"
[124] =>
string(2) "ټ"
[125] =>
string(2) "ٽ"
[126] =>
string(2) "پ"
[127] =>
string(2) "ٿ"
(more elements)...
(more elements)...
}
}
}
*/
use Benemohamed\Unicodeblock\UnicodeBlock;
var_dump(get_class_methods(UnicodeBlock::class));