phpのarray_splice() で配列の指定要素を削除

PHPコード:
<?php
$my_array=array( //配列を作成
“hehe"=>"haha",
“A"=>"lu",
“lu"=>"ge"
);
$new=array_splice($my_array,1,3);
var_dump($new);
?>

結果:
array(2) { [“A"]=> string(2) “lu" [“lu"]=> string(2) “ge" }

PHP

Posted by arkgame