If you want to delete just one array element you can use unset() or alternatively \array_splice() . If you know the value and don't know the key to delete the ... ... <看更多>
Your current code only works once, because you keep the keys. ... In php you can use array_slice to obtain a new array with only a slice of ... ... <看更多>