PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php error_reporting(E_ALL); ini_set('display_errors', true); ini_set('html_errors', false); // 简单数组: $array = array(1, 2); print_r($array); echo PHP_EOL; $count = count($array); echo '$count: '.$count; echo PHP_EOL; for ($i = 0; $i < $count; $i++) { echo "\n检查 $i: \n"; echo "坏的: " . $array['$i'] . "\n"; echo "好的: " . $array[$i] . "\n"; echo "坏的: {$array['$i']}\n"; echo "好的: {$array[$i]}\n"; echo PHP_EOL; } ?>
Show:  
Copy Clear