How to delete specific value from multidimensional array in PHP | |||||||||||
Is it possible to remove the specific value from multidimensional array in PHP ? If yes, what should I do to delete it ? | |||||||||||
| |||||||||||
Hi, To delete the specific value from multidimensional array, you have to use the unset() function. The example can be: $arr = array(100 => array(1000 => "aaa", 2000 => "bbb")); print_r($arr); unset($arr[100][2000]); print_r($arr); | |||||||||||
| |||||||||||
| |||||||||||
![]() ![]() ![]() ![]() | |||||||||||
2022 AnswerTabs | Terms | Contact us |