Table of Contents

PHP

Display an array

Display an array with a for loop :

$array = array();
foreach ($array as $key => $value) {
 echo $key." => ".$value."<br>";
}

Alternately you can display an array on one line using the method :

$array = array();
print_r($array);

Renaming a Form submit button

<input name="form" type="submit" value="Name"/>