Node Js Array Functions In Php