0

Is $row a predefined variable in php (or does it have some other built-in functionality)? I have several times seen it used without prior reference in the code, but haven't found any documentation or explanation about it yet.

IAM
  • 895
  • 2
  • 13
  • 30
drenl
  • 1,321
  • 4
  • 18
  • 32
  • 1
    $row is not a predefined variable,but it is the most meaningful and hence most used variable name to store a database row. – rjv Jun 07 '13 at 01:01

2 Answers2

0

No, there is no such a predefined variable, you've just seen a variable declaration/initialization.

Brad Koch
  • 19,267
  • 19
  • 110
  • 137
IAM
  • 895
  • 2
  • 13
  • 30
0

This is just a convention, you can use any name you want, however is good to use something simple, clear that make sense...

Wils
  • 1,211
  • 17
  • 31