Advertisement
GWibisono

reset nya kurang

Jan 5th, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2. $t5=array('buku1','buku2','buku3','buku4','buku5');
  3. $t2=array('buku 1','buku 2','buku 3','buku 4','buku 5');
  4. while( list($indeks, $nilai) = each($t5))
  5. {
  6.     print("<BR>($nilai)");
  7.     while( list($indeks, $dd) = each($t2))
  8.     {
  9.         $dd =explode(' ',$dd);
  10.         while( list($indeks, $term) = each($dd))
  11.         {
  12.             print("<BR>$nilai --> $term");
  13.         }
  14.     }
  15.  
  16.     reset($t2);
  17. }
  18. echo "<hr/>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement