Home >Backend Development >PHP Problem >What is the difference between php array and C language array structure?

What is the difference between php array and C language array structure?

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-09-28 13:26:074718browse

What is the difference between php array and C language array structure?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn