PHP-de massiwlary splýasing etmek

array_splice
Задание 1

Massiw berlen:

php<?php
  $arr = [1, 2, 3, 4, 5];
?>

Ondan elementleri çykaryň, şonuň üçin massiw şeýle bolsun:

php<?php
  [1, 4, 5]
?>
Задание 2

Massiw berlen:

php<?php
  $arr = [1, 2, 3, 4, 5];
?>

Bu massiwden şu kesgini alyň:

php<?php
  [2, 3, 4]
?>
Задание 3

Massiw berlen:

php<?php
  $arr = [1, 2, 3, 4, 5];
?>

Bu massa täze elementleri goşuň:

php<?php
  [1, 2, 3, 'a', 'b', 'c', 4, 5]
?>
Задание 4

Massiw berlen:

php<?php
  $arr = [1, 2, 3, 4, 5];
?>

Bu massa täze elementleri goşuň:

php<?php
  [1, 'a', 'b', 2, 3, 4, 'c',  5, 'e']
?>