JString::valid

Tests a string as to whether it's valid UTF-8 and supported by the Unicode standard.

Note: this function has been modified to simple return true or false.

Signature

public function valid(string $strĀ )

Parameters

$str
UTF-8 encoded string.

Returns

boolean
true if valid