Php – foreach: “in” v. “as”

foreachphp

What is the difference between these two usages of foreach?

foreach ($nodes as $node) {
 //do stuff
}

foreach ($odp in $ftw) {
  //do more stuff
}

Best Solution

First one is legal PHP, second one is not.