Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP Data Structures

PHP Data Structures

Connehito Marché vol.5 〜PHP市〜 の LT 資料です
https://connehito.connpass.com/event/122217/

Takuya Arita

March 20, 2019
Tweet

More Decks by Takuya Arita

Other Decks in Programming

Transcript

  1. Data Structures ʹ͍ͭͯ • PHP ϚχϡΞϧ • http://php.net/manual/ja/book.ds.php • GItHub

    • https://github.com/php-ds/ext-ds • ։ൃऀʹΑΔղઆ • https://medium.com/@rtheunissen/efficient-data-structures- for-php-7-9dda7af674cd
  2. ։ൃऀʹΑΔղઆهࣄͷൈਮ PHP has one data structure to rule them all.

    The array is a complex, flexible, master-of-none, hybrid data structure, combining the behaviour of a list and a linked map. But we use it for everything, because PHP is pragmatic: “dealing with things sensibly and realistically in a way that is based on practical rather than theoretical considerations”. An array gets the job done. Unfortunately, with flexibility comes complexity.