色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁技術文章
文章詳情頁

PHP擴展之PHP標準庫(SPL)概述

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

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

此擴展只能在php 5.0以后使用,并且從PHP 5.3.0 不再被關閉,會一直有效,成為php內核組件一部份。

數(shù)據(jù)結構

SPL提供了一組標準數(shù)據(jù)結構。

雙向鏈表

雙向鏈表 (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 提供一系列標準異常。

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?— 為迭代器中每個元素調用一個用戶自定義函數(shù)iterator_count?— 計算迭代器中元素的個數(shù)iterator_to_array?— 將迭代器中的元素拷貝到數(shù)組spl_autoload_call?— 嘗試調用所有已注冊的__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 提供 一些與文件相關的類。

SplFileInfoSplFileObjectSplTempFileObject其他類及接口ArrayObjectSplObserverSplSubject
標簽: PHP
相關文章:
主站蜘蛛池模板: 亚洲最大看欧美片网站 | 99午夜高清在线视频在观看 | 日本免费二区三区久久 | 一区二区三区欧美在线 | 中文字幕亚洲区 | 亚洲一区二区三区四区五区六区 | 亚洲精品视频专区 | 欧美特级 | 久爱免费观看在线网站 | 国产精品欧美韩国日本久久 | 99久久精品费精品国产一区二区 | 一极毛片 | 久久久久久久久久久久久久久久久久 | 久久91精品国产一区二区 | 亚洲精品在线视频观看 | 三级视频网站在线观看 | 手机看片日韩日韩国产在线看 | 在线国产欧美 | 毛片网站大全 | 国产精品久久久久久一区二区 | 特级a欧美做爰片毛片 | 最新国产美女一区二区三区 | 中文字幕一区二区三区视频在线 | 日本久久香蕉一本一道 | 波多野结衣视频在线观看 | 久久视频精品线视频在线网站 | 欧美综合图片一区二区三区 | 国产亚洲一区呦系列 | 亚洲aⅴ男人的天堂在线观看 | 国产美女在线一区二区三区 | 欧洲美女与男人做爰 | 黄网视频在线观看 | 六月丁香婷婷色狠狠久久 | 99爱视频99爱在线观看免费 | 男人天堂男人天堂 | 美女视频免费永久观看的 | 一区二区三区高清不卡 | 免费观看三级毛片 | 久久国产欧美另类久久久 | 成人丝袜激情一区二区 | 国产三级三级三级三级 |