ProAnswers.org

Easy way to delete an element from a php array?

How to delete an element from a php array?

You use unset:

			php 
			$x = array(1, 2); 
			unset($x[0]); 
			var_dump($x); 
			?>