Edit Strings


The all string functions and methods support Unicode like in Java.

String Functions

The JPHP has own util class for working with strings php\lib\String, for example:

WARNING

If JPHP cannot find php\lib\String class, you are using the new version of JPHP where this class has been
renamed to php\lib\Str.

use php\lib\String;

$result = String::sub($string, 1);

// instead of ...

$result = substr($string, 1);

This class contains many useful methods: