<aside> 💡 To learn WordPress theme and plugin development, the following PHP stuff would be more than sufficient. This guideline is provided by Kamal Ahmed, who has worked for WP Developers, rtCamps, UberSuggest, SiteCare, and other companies.
</aside>
Please see the documentation for example and details understanding.
sizeof($array)
// Use this function to find out how many elements an array contains
array_values($array)
//Use this function to retrieve all the values from an associative array.
array_keys($array)
// Use this function to retrieve all the keys from an associative array.
array_pop($array)
//Use this function to remove an element from the end of an array.
array_push($array, $value)
// This function adds an element to the end of an array.
array_shift($array)
//This function removes an element from the beginning of an array.
array_unshift($array, $value)
// This function adds an element to the beginning of an array.
array_map($callback, $array1)
//This function returns an array containing all the elements of array1 after applying the callback function to each one. You can pass more than one array. The number of parameters that the callback function accepts should match the number of arrays passed to the array_map()