久久福利_99r_国产日韩在线视频_直接看av的网站_中文欧美日韩_久久一

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

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

瀏覽:47日期: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)文章:
主站蜘蛛池模板: 国产一在线 | 欧美日韩高清在线一区 | av在线免费观看网站 | 国产中文字幕在线 | 日韩欧美国产精品综合嫩v 久久久久久国产精品高清 国产目拍亚洲精品99久久精品 | 超碰激情| 欧美三级在线播放 | 精品国产31久久久久久 | 久久伊人久久 | 久久精品一区二区三区不卡牛牛 | 亚洲欧美日韩在线一区 | 精品国产一区二区三区久久久久久 | 欧洲在线一区 | 欧美黄色一区 | 久久久久久网站 | 国产99精品 | 国产一区二区三区四区在线观看 | 久久精品国产99国产 | 国产成人精品亚洲777人妖 | 国产免费观看一区二区三区 | 国产特一级黄色片 | 日韩电影一区二区在线观看 | 美女久久 | 在线国产91| 欧美成人黄色 | 欧美精品成人一区二区三区四区 | 国产午夜精品一区二区三区嫩草 | 一区二区三区四区 | 级毛片| 久久久久成人精品 | 成人h动漫在线看 | 一级毛片免费完整视频 | 久久精品欧美一区二区三区不卡 | 成人久久久精品乱码一区二区三区 | 在线观看你懂的视频 | 久久精品欧美 | 天天射天天干 | 人人射人人 | 日韩一区二区福利视频 | 久久精品91 | 欧美激情视频一区二区三区在线播放 |