PHP Classes

File: test/85_locale_is_right_to_left.php

Recommend this page to a friend!
  Classes of ASCOOS CMS   PHP 8 Backwards Compatibility Library   test/85_locale_is_right_to_left.php   Download  
File: test/85_locale_is_right_to_left.php
Role: Example script
Content type: text/plain
Description: Returns whether the given $locale has an RTL script.
Class: PHP 8 Backwards Compatibility Library
Functions of PHP 8 that work in older PHP versions
Author: By
Last change:
Date: 1 month ago
Size: 260 bytes
 

Contents

Class file image Download
<?php

locale_is_right_to_left
('en'); // false
locale_is_right_to_left(''); // false
locale_is_right_to_left('ar'); // true
locale_is_right_to_left('ar-US'); // true
locale_is_right_to_left('he_IL'); // true
locale_is_right_to_left('ar-XY'); // true
?>