Java Object Array To String Function In Php