Jump to content



  • Please log in to reply
1 reply to this topic

#1 knowram

  • Members
  • PipPipPip
  • Advanced Member
  • 226 posts

Posted 13 June 2006 - 09:31 PM

Ok there must be some way to just take a given variable out of an array no mater where in that array the variable is. I have searched php.net for some time and can only find functions to split the array in two or take variables of the beginning or end of the array.

thanks for the help

#2 robos99

  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts

Posted 13 June 2006 - 09:36 PM

If you know the key for that slice of the array just do unset($array['key'])

If you don't know the key you could get it through array_search.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users