How to add new element to an array using php.array_push() php core function can be use for this.It will adding new element to ad array.