Full Concepts On array_reverse() Function Along With A Coding Example Prepared By Me Of Array Functions In PHP
Full Concepts On array_reverse() Function Along With A Coding Example Prepared By Me Of Array Functions In PHP
Q1. Why the array elements are not reversed while using "array_reverse($arr);"?
Ans: The array elements are not reversed while using array_reverse($arr) because after manipulation it's not able to store anywhere, but the array_reverse() function is working.
Q2. Why in other functions manipulation is working and output is generated while in "array_reverse($arr)" manipulation is not working and output is not reversed?
Ans: In other functions manipulation is working and output is generated while in "array_reverse($arr)" manipulation is not working and output is not reversed because in other functions we are either adding or deleting the array elements where in adding the array elements it is fixed while in deleting the array elements we are terminating the array elements , so there is nothing to store after manipulation, but in array_reverse() function we need to store the array elements.
Q3. Give a coding example of array_reverse()?
Ans: Coding =>
Output Of The Coding =>
Comments
Post a Comment