<?php
/**
* czibere.lima-city.de/_forum/c143/array-element-loeschen-und-andere-nachschieben.php
*/
error_reporting(E_ALL | E_STRICT);
$src = highlight_file(__FILE__, true);
exit(<<< EOT
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
var a = new Array('a','b','c','d','e');
var cut = 2; // wertebereich (bei array 'a'): (0 <= cut) & (cut < (a.length - 1))
// wertebereich von 'cut' prüfen
if((0 <= cut) & (cut < (a.length - 1))) {
alert(a = a.slice(0,cut).concat(a.slice(cut+1)));
}
</script>
</head>
<body>
<section id="src">
$src
</section>
</body>
</html>
EOT
);