Advertisement
kazlik

Untitled

Feb 4th, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. class Test
  2. {
  3.     public $data[] = ['Jedna', 'Dvě', 'Tři'];
  4.  
  5.  
  6. }
  7.  
  8. $test = new Test();
  9. foreach($test as $row){
  10.     dump($row); //dump array 0 - Jedna, 1 - Dvě, 2 - Tři
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement