DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
How To Unset Or Delete An Element From Array By Value In PHP?
if (($key = array_search($value, $sampleArray)) !== false) { unset($sampleArray[$key]); }
Source by www.tutsplanet.com #
PREVIOUS
NEXT
Tagged:
#How
#To
#Unset
#Or
#Delete
#An
#Element
#From
#Array
#By
#Value
#In
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit