![]() Regardless of these syntactic differences, however, there are similarities. In object-oriented languages there is a syntax like or bike->location->lat common. In PHP, the latitude in the example above can be reached via $bike. ![]() The syntax used to access the data also differs from language to language. Sometimes the language inventors call the constructs differently if the keys are numbers instead of strings. Similar structures, also known as associative data fields, exist in every modern programming language they always have a different name: Object, Struct, Dictionary, Slice or Map. The strings like manufacturer, type and wheels is called a key, and the values are stored underneath. This example is written in PHP, where such data structures are always called arrays.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |