InterviewSolution
| 1. |
How Arrays Are Passed Through Arguments? |
|
Answer» Like a normal variable, an ARRAY is passed through an argument by value, not by REFERENCE. That means when an array is passed as an argument, a copy of the array will be passed into the function. Modipickzyng that copy INSIDE the function will not impact the original copy. Here is a PHP script on passing arrays by values: Like a normal variable, an array is passed through an argument by value, not by reference. That means when an array is passed as an argument, a copy of the array will be passed into the function. Modipickzyng that copy inside the function will not impact the original copy. Here is a PHP script on passing arrays by values: |
|