PHP : Delete an element from an array

<?php

$x = array(1, 2);

unset($x[0]);

var_dump($x);

?>

unset

Leave a Reply