PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
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 Clear