PHPize Online / SQLize Online

A A A
Share   Donate   Blog   Popular
Copy Format Clear
Copy
Copy Format Clear
<?php $cases = array ( array ( "img" => "129", "name" => "Отделка евровагонкой", ), array ( "img" => "130", "name" => "Отделка евровагонкой2", ), array ( "img" => "131", "name" => "Отделка евровагонкой3", ), ); $count = count($cases); foreach($cases as $case) { $key = rand(0,$count-1); echo $cases[$key]['name'] . PHP_EOL; }
Show:  
Copy