Explain PHP/MySQL in Simple Terms

This question already has an answer here:

  • How does PHP 'foreach' actually work? 7 answers

  • It's a foreach loop. So it can be translated to...

    for every object in the $row variable, assign that object to the new variable $name , with its corresponding value as $value

    That will loop N times, where N is the number of rows returned. Each time the loop is iterated, the $name and $value variables are re-initialized to the new row's contents.

    链接地址: http://www.djcxy.com/p/53030.html

    上一篇: PHP在foreach中使用current函数

    下一篇: 用简单的术语解释PHP / MySQL