How to insert an new array element in array?
Answer / 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 |
How can you send email in php?
Which is the dependent variable?
What are sql functions?
Different between the var_dump() and print_r()?
How to connect to a url in php?
How do you use an array in excel?
Is not null mysql?
How to download a php script directly in your script page?
3 Answers A1 Technology, Zmanda,
What is strstr php?
What is the difference between javascript and php?
Is php easier than javascript?
What is the role of php?