亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

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

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

SPL是用于解決典型問題(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 提供一系列迭代器以遍歷不同的對象。

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)用所有已注冊的__autoload()函數(shù)來裝載請求類spl_autoload_extensions?— 注冊并返回spl_autoload函數(shù)使用的默認(rèn)文件擴(kuò)展名。spl_autoload_functions?— 返回所有已注冊的__autoload()函數(shù)。spl_autoload_register?— 注冊__autoload()函數(shù)spl_autoload_unregister?— 注銷已注冊的__autoload()函數(shù)spl_autoload?— __autoload()函數(shù)的默認(rèn)實(shí)現(xiàn)spl_classes?— 返回所有可用的SPL類spl_object_hash?— 返回指定對象的hash id文件處理

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

SplFileInfoSplFileObjectSplTempFileObject其他類及接口ArrayObjectSplObserverSplSubject
標(biāo)簽: PHP
相關(guān)文章:
主站蜘蛛池模板: 99re最新| 午夜性刺激小说 | 精新精新国产自在现拍欣赏网 | 欧美精品免费线视频观看视频 | 免费一区二区三区在线视频 | 嫩草免费视频 | 免费高清成人啪啪网站 | 亚洲欧洲一区二区三区在线 | 欧美视频网站免费看 | 一级片一级片一级片一级片 | 五月天婷婷网亚洲综合在线 | 成人99国产精品一级毛片 | 美女黄网站人色视频免费国产 | 亚洲第一色站 | 免费污片在线观看 | 国产小视频在线观看 | 不卡视频在线观看 | 网站啪啪| 亚洲天堂精品视频 | 亚洲视频国产 | 亚洲欧美日韩综合一区久久 | 九九热视 | 久久九九精品一区二区 | 一区二区三区免费 | 片在线观看免费观看视频 | 精品国产欧美一区二区三区成人 | 精品视频久久久久 | 免费一级a毛片夜夜看 | 免费a级毛片在线观看 | 欧美一区不卡二区不卡三区 | 精品视频一区二区三区 | 亚洲自拍色 | 午夜视频偷拍在线观看免费 | 一级黄色录像在线观看 | 中国黄色录像 | 亚洲最新黄色网址 | 国产 日韩 欧美 在线 | 欧美一级毛片欧美毛片视频 | 国产三级毛片视频 | 999久久精品国产 | 久久机热综合久久国产 |