using the array_splice function

This example shows the array_splice function

<html>
<body>
<?php
$grades = array(45,80,23,100,3);
print_r ($grades);
print "<br>";
array_splice($grades,4,0,array(98,99,97));
print_r ($grades);
print "<br>";
?>
</body>
</html>