-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
  • 151
  • 2
  • 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
  • 30,424
  • 18
  • 72
  • 100