Chapter

Removing Elements

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How are elements added to the next available integer index in a PHP array?

    "By using the assignment operator but not specifying the index, the element will be added to the next available integer index. Since there were already 3 elements in the array, each subsequent element

  2. How does unset() remove elements from a PHP array?

    "You can remove elements from an array using the unset() function. This function only removes the element from the array, it does not shift other elements down to fill in the unused index.\n\n$arr = a

Removing Elements | ComputerScienceOne | Bifalgorithm | Bifalgorithm