-2

When we pass an array as an argument to a function, what actually gets passed?

Someone told me that it is "Base address of the array"? but I am not sure about it. How this array is processed then?

halfer
  • 19,824
  • 17
  • 99
  • 186
Adi
  • 4,766
  • 3
  • 20
  • 22
  • 7
    Are you taking a test right now? – Rasclatt Nov 01 '14 at 06:03
  • No actually I am not sure about my answer & I need some more elaboration on this topic if any one have. – Adi Nov 01 '14 at 06:04
  • Do I get a credit for the course if I tell you the right answer?? – Rasclatt Nov 01 '14 at 06:05
  • 2
    possible duplicate of [are arrays in php passed by value or by reference?](http://stackoverflow.com/questions/2030906/are-arrays-in-php-passed-by-value-or-by-reference) – Andrew Nov 01 '14 at 06:08
  • 1
    @Rasclatt Yes sure how much? – Adi Nov 01 '14 at 06:12
  • 2
    Too late, @Andrew already got the course credit. I could have helped if it was a multiple choice. I would have said the answer was "c"...that's always the right answer. – Rasclatt Nov 01 '14 at 06:15

1 Answers1

1

this is the answer: Are arrays in PHP passed by value or by reference?

Community
  • 1
  • 1
Andrew
  • 7,619
  • 13
  • 63
  • 117