-4

I tried searching on Google, but can't seem to find out what does this operator really mean in PHP?

=>

Any help please?

user1079950
  • 131
  • 1
  • 2
  • 6

1 Answers1

3

=> is the separator for associative arrays. In the context of that foreach loop, it assigns the key of the array to the value.

What does "=>" mean in PHP?

Community
  • 1
  • 1
Yogesh Suthar
  • 29,554
  • 17
  • 66
  • 96