adspace
Answer Posted / Lav Kant
To insert a new element into an array, you can use the array_push() function. This appends one or more elements to the end of the array.nExample:n```phpn$arr = [1, 2, 3];narray_push($arr, 4);narray_push($arr, [5, 6]);n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the current stable version of php?
What is difference between static and final in php?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
Tell me what kind of things have you done on the social side?
How to create a web form?
Explain me is it possible to destroy a cookie?
What is the current stable version of php? What advance thing in php7?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
Which variable declarations within a class is invalid in php?
What is trait in php?
Write a program using while loop?
What does $_files means?
How to calculate the difference between two dates using php?
What sized websites have you worked on in the past?