国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

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

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

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

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

此擴展只能在php 5.0以后使用,并且從PHP 5.3.0 不再被關(guān)閉,會一直有效,成為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?— 返回指定的類實現(xiàn)的所有接口。class_parents?— 返回指定類的父類。class_uses?— Return the traits used by the given classiterator_apply?— 為迭代器中每個元素調(diào)用一個用戶自定義函數(shù)iterator_count?— 計算迭代器中元素的個數(shù)iterator_to_array?— 將迭代器中的元素拷貝到數(shù)組spl_autoload_call?— 嘗試調(diào)用所有已注冊的__autoload()函數(shù)來裝載請求類spl_autoload_extensions?— 注冊并返回spl_autoload函數(shù)使用的默認文件擴展名。spl_autoload_functions?— 返回所有已注冊的__autoload()函數(shù)。spl_autoload_register?— 注冊__autoload()函數(shù)spl_autoload_unregister?— 注銷已注冊的__autoload()函數(shù)spl_autoload?— __autoload()函數(shù)的默認實現(xiàn)spl_classes?— 返回所有可用的SPL類spl_object_hash?— 返回指定對象的hash id文件處理

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

SplFileInfoSplFileObjectSplTempFileObject其他類及接口ArrayObjectSplObserverSplSubject
標(biāo)簽: PHP
相關(guān)文章:
主站蜘蛛池模板: 日韩不卡毛片 | 真人一级毛片免费观看视频 | 久久精品爱国产免费久久 | 亚洲国产99在线精品一区二区 | 男女视频在线观看 | 色播亚洲视频在线观看 | 成人欧美一级毛片免费观看 | 日韩欧美在线观看一区 | 在线播放亚洲美女视频网站 | 欧美一级欧美一级在线播放 | a毛片在线看片免费 | 美国毛片一级视频在线aa | 一级做a爰片毛片 | 久久99亚洲精品久久久久 | 美女黄页黄频 | 国产成人亚洲精品 | 久久国产a| 中国黄色网址大全 | 亚洲天堂在线观看视频 | a毛片成人免费全部播放 | 美女叉开腿让男人捅 | 欧美视频在线观看网站 | 国产精品久久久久无毒 | 国产欧美精品午夜在线播放 | 欧美一级aa免费毛片 | 亚洲美女aⅴ久久久91 | 国产精品久久久久久久久久久威 | 男女性高清爱潮视频免费观看 | 成人精品视频一区二区三区 | 亚洲欧美一级久久精品 | 国产成人免费永久播放视频平台 | 国产精品一区二区丝瓜 | 99爱精品视频 | 国产精品久久久久免费视频 | a级国产乱理伦片在线观看99 | 亚欧美视频 | 久久在线国产 | 久久久久久亚洲精品影院 | 看一级特黄a大片国产 | 日韩不卡一二三区 | 欧美+日本+国产+在线观看 |