The difference between php array and C language array structure:
Related recommendations: "php array"
PHP's array is an aggregate of sequence Array, list, hash table/associative array/dictionary Hashtable.
is a very advanced data structure and an excellent design. It has a set of array functions to support PHP arrays.
The array in C language is just a "fixed length, fixed type" array Array, which is simple to implement and has primitive functions. It has the advantage of fast random operation of sequence, but also has the disadvantage of inefficient addition and deletion of sequence.
If you want to compare, PHP's array should be compared with C's STL, with similar functions.
The above is the detailed content of What is the difference between php array and C language array structure?. For more information, please follow other related articles on the PHP Chinese website!