<?php
$db_user = array("user_id", "user_name", "email");
array_push($db_user, "contact");
print_r($db_user);
?>
Output:
Array
(
[0] => user_id
[1] => user_name
[2] => email
[3] => contact
)
$original = array( 'a', 'b', 'c', 'd', 'e' );
$inserted = array( 'x' ); // not necessarily an array, see manual quote
array_splice( $original, 3, 0, $inserted ); // splice in at position 3
// $original is now a b c x d e