Create array_splice.php function