예제 #1
0
#!/usr/bin/php

<?php 
include_once "java/Java.inc";
// Start server with:
// java -Dfile.encoding=ASCII -jar JavaBridge.jar INET:0 4 ""
// test the default UTF-8 encoding for arrays
$here = realpath(dirname($_SERVER["SCRIPT_FILENAME"]));
if (!$here) {
    $here = getcwd();
}
$ArrayToString = new JavaClass("ArrayToString");
$ar = array("Cześć!", " שלום", " Grüß Gott", " Dobrý deň", " Dobrý den", " こんにちは, コンニチハ");
print java_values($ArrayToString->arrayToString($ar)) . "\n";