|
Locale::isRightToLeftlocale_is_right_to_leftCheck whether a locale uses a right-to-left writing system DescriptionObject-oriented style
public
static
bool Locale::isRightToLeft(
string
$locale
= ""
)Procedural style bool locale_is_right_to_left(string
$locale = "")Determines whether a locale uses a right-to-left writing system. This method relies on the ICU library and evaluates the dominant script associated with the locale. Parameters
Return Values
Returns Changelog
ExamplesExample #1 Checking text direction for a locale The above example will output: bool(false) bool(true) |