FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » unset multidimensional array element
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: unset multidimensional array element [message #180534 is a reply to message #180533] Sun, 24 February 2013 15:36 Go to previous messageGo to previous message
cate is currently offline  cate
Messages: 12
Registered: January 2012
Karma:
Junior Member
> This is the behaviour PHP programmers IMO like. Imagine you have a unique database
>
> key as index, I would not like it to be renumbered after deletion of one entry.
>
>
>
> /Str.

Me neither ... :-)

$a = array(1,2,3,4,5,9,8,7,6);
unset($a[4]);
print_r($a);
$ar = array_reverse($a);
print_r($ar);
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: preg_replace... I can't do it!!
Next Topic: simpletest vs phpunit vs ...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 13:40:26 GMT 2024

Total time taken to generate the page: 0.06877 seconds