DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php reindex array after unset
unset
(
$foo
[
0
]
)
;
// remove item at index 0
$foo2
=
array_values
(
$foo
)
;
// 'reindex' array
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#reindex
#array
#unset
ADD COMMENT
Topic
COMMENT
Name
5+3 =
Submit