Copy code The code is as follows:
$a = array('a','b','c','d');
unset($a[2]);
print_r($a );
Copy the code The code is as follows:
function array_remove(&$arr,$offset){
array_splice($arr,$offset,1);
}
$ a = array('a','b','c','d');
array_remove($a,2);
print_r($a);
The above introduces how to use the vlookup function. How to delete specific array contents and rebuild the array index in PHP, including how to use the vlookup function. I hope it will be helpful to friends who are interested in PHP tutorials.