Demo For: PHP Remove Value From Array Examples
Example 1: Removing a value from the array - Remove value "grapes"Following are the original array contents:
Array ( [0] => apple [1] => mango [2] => grapes [3] => pineapple )Following are the array contents AFTER removing the value from array:
Array ( [0] => apple [1] => mango [3] => pineapple )Example 2: Removing a value from the array - Remove value "grapes"
Following are the original array contents:
Array ( [0] => apple [1] => mango [2] => grapes [3] => pineapple )Following are the array contents AFTER removing the value from array:
Array ( [0] => apple [1] => mango [3] => pineapple )