av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

PHP擴(kuò)展之PHP標(biāo)準(zhǔn)庫(kù)(SPL)概述

瀏覽:60日期:2022-09-15 17:44:24

SPL是用于解決典型問(wèn)題(standard problems)的一組接口與類的集合。

此擴(kuò)展只能在php 5.0以后使用,并且從PHP 5.3.0 不再被關(guān)閉,會(huì)一直有效,成為php內(nèi)核組件一部份。

數(shù)據(jù)結(jié)構(gòu)

SPL提供了一組標(biāo)準(zhǔn)數(shù)據(jù)結(jié)構(gòu)。

雙向鏈表

雙向鏈表 (DLL) is a list of nodes linked in both directions to each others. Iterator’s operations, access to both ends, addition or removal of nodes have a cost of O(1) when the underlying structure is a DLL. It hence provides a decent implementation for stacks and queues.

SplDoublyLinkedListSplStackSplQueue

Heaps are tree-like structures that follow the heap-property: each node is greater than or equal to its children, when compared using the implemented compare method which is global to the heap.

SplHeapSplMaxHeapSplMinHeapSplPriorityQueue

陣列

Arrays are structures that store the data in a continuous way, accessible via indexes. Don’t confuse them with PHP arrays: PHP arrays are in fact implemented as ordered hashtables.

SplFixedArray

映射

A map is a datastructure holding key-value pairs. PHP arrays can be seen as maps from integers/strings to values. SPL provides a map from objects to data. This map can also be used as an object set.

SplObjectStorage迭代器

SPL 提供一系列迭代器以遍歷不同的對(duì)象。

ArrayIteratorRecursiveArrayIteratorEmptyIteratorIteratorIteratorAppendIteratorCachingIteratorRecursiveCachingIteratorFilterIteratorCallbackFilterIteratorRecursiveCallbackFilterIteratorRecursiveFilterIteratorParentIteratorRegexIteratorRecursiveRegexIteratorInfiniteIteratorLimitIteratorNoRewindIteratorMultipleIteratorRecursiveIteratorIteratorRecursiveTreeIteratorDirectoryIterator?(extends?SplFileInfo)FilesystemIteratorGlobIteratorRecursiveDirectoryIterator接口

SPL 提供一系列接口。

CountableOuterIteratorRecursiveIteratorSeekableIteratorSplObserverSplSubject異常

SPL 提供一系列標(biāo)準(zhǔn)異常。

LogicException?(extends?Exception)BadFunctionCallExceptionBadMethodCallExceptionDomainExceptionInvalidArgumentExceptionLengthExceptionOutOfRangeExceptionRuntimeException?(extends?Exception)OutOfBoundsExceptionOverflowExceptionRangeExceptionUnderflowExceptionUnexpectedValueExceptionSPL函數(shù)class_implements?— 返回指定的類實(shí)現(xiàn)的所有接口。class_parents?— 返回指定類的父類。class_uses?— Return the traits used by the given classiterator_apply?— 為迭代器中每個(gè)元素調(diào)用一個(gè)用戶自定義函數(shù)iterator_count?— 計(jì)算迭代器中元素的個(gè)數(shù)iterator_to_array?— 將迭代器中的元素拷貝到數(shù)組spl_autoload_call?— 嘗試調(diào)用所有已注冊(cè)的__autoload()函數(shù)來(lái)裝載請(qǐng)求類spl_autoload_extensions?— 注冊(cè)并返回spl_autoload函數(shù)使用的默認(rèn)文件擴(kuò)展名。spl_autoload_functions?— 返回所有已注冊(cè)的__autoload()函數(shù)。spl_autoload_register?— 注冊(cè)__autoload()函數(shù)spl_autoload_unregister?— 注銷已注冊(cè)的__autoload()函數(shù)spl_autoload?— __autoload()函數(shù)的默認(rèn)實(shí)現(xiàn)spl_classes?— 返回所有可用的SPL類spl_object_hash?— 返回指定對(duì)象的hash id文件處理

SPL 提供 一些與文件相關(guān)的類。

SplFileInfoSplFileObjectSplTempFileObject其他類及接口ArrayObjectSplObserverSplSubject
標(biāo)簽: PHP
相關(guān)文章:
主站蜘蛛池模板: 国产wwwwww| 国产精品2区 | 日韩午夜在线观看 | 午夜成人影片 | 我要操网站 | 久久国产美女 | 日日夜夜草 | 久久精品综合 | 日韩av网站在线观看 | 三级黄色在线观看 | 日韩一区二区中文字幕 | 免费成人深夜夜国外 | 日韩大片在线观看 | 久草这里只有精品 | 真实的国产乱xxxx在线 | 国产精品国产三级国产aⅴ浪潮 | 日韩美女一区二区三区 | 中文字幕自拍 | 在线看91| 国产欧美日韩综合 | 欧美深夜福利 | 毛片免费在线观看 | 天堂视频在线免费观看 | 韩日一级片 | 91福利在线观看 | 精品国产一二三区 | 丁香婷婷网 | 精品久久久久久 | 久久九九免费视频 | 日本亚洲精品 | 一区二区三区久久久 | 91av导航| www.中文字幕.com | 91亚洲精选 | 最新超碰| 青草在线视频 | 一级片网址 | 中文字幕99 | 天天操天天拍 | 中文字幕在线网站 | 成人观看视频 |