drupal - neden $ node-> taksonomisi bir dizidir

0 Cevap php

Birisi bu kod yazdı.

 foreach ($node->taxonomy as $term) {
 $tids[] = 't.tid = %d';
  $args[] = $term->tid;
 }

how he knows that in foreach "$node->taxonomy" is an array? and when i loop it, foreach ($node->taxonomy as $term) { } the output that i get will be the $term's value. i don't know how it is change into the 't.tid = %d' and $term->tid. thank you.

0 Cevap