The syntax in jsphp is very similar to a native implementation, although adapted to the syntax of PHP. For example, the variables are prepended by a "$", the Object access opertaor is "->", and Strings are concatenated using a ".".
$myString = new JSString( 'Hello World' ); $myString = $myString->split( '' )->reverse()->join( '' ); print( 'Reversed: ' . $myString ); // dlroW olleH