DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php delete item from array
if
(
in_array
(
'strawberry'
,
$array
)
)
{
unset
(
$array
[
array_search
(
'strawberry'
,
$array
)
]
)
;
}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#delete
#item
#array
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit