print array data for 5 times in php code example Example: php echo array foreach($results as $result) { echo $result . '<br>'; }