Java String And Array Methods In Php