484個(gè)PHP必備的函數(shù)集_第1頁(yè)
484個(gè)PHP必備的函數(shù)集_第2頁(yè)
484個(gè)PHP必備的函數(shù)集_第3頁(yè)
484個(gè)PHP必備的函數(shù)集_第4頁(yè)
484個(gè)PHP必備的函數(shù)集_第5頁(yè)
已閱讀5頁(yè),還剩18頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、.484個(gè)PHP必備的函數(shù)集484個(gè)PHP必備的函數(shù)集2020-11-22 16:49array_change_key_case-返回字符串鍵名全為小寫(xiě)或大寫(xiě)的數(shù)組array_chunk-將一個(gè)數(shù)組分割成多個(gè)array_combine-創(chuàng)立一個(gè)數(shù)組,用一個(gè)數(shù)組的值作為其鍵名,另一個(gè)數(shù)組的值作為其值array_count_values-統(tǒng)計(jì)數(shù)組中所有的值出現(xiàn)的次數(shù)array_diff_assoc-帶索引檢查計(jì)算數(shù)組的差集array_diff_key-使用鍵名比較計(jì)算數(shù)組的差集array_diff_uassoc-用用戶提供的回調(diào)函數(shù)做索引檢查來(lái)計(jì)算數(shù)組的差集array_diff_ukey-用回調(diào)函

2、數(shù)對(duì)鍵名比較計(jì)算數(shù)組的差集array_diff-計(jì)算數(shù)組的差集array_fill_keys-Fill an array with values,specifying keys array_fill-用給定的值填充數(shù)組array_filter-用回調(diào)函數(shù)過(guò)濾數(shù)組中的單元array_flip-交換數(shù)組中的鍵和值array_intersect_assoc-帶索引檢查計(jì)算數(shù)組的交集array_intersect_key-使用鍵名比較計(jì)算數(shù)組的交集array_intersect_uassoc-帶索引檢查計(jì)算數(shù)組的交集,用回調(diào)函數(shù)比較索引array_intersect_ukey-用回調(diào)函數(shù)比較鍵名來(lái)計(jì)算

3、數(shù)組的交集array_intersect-計(jì)算數(shù)組的交集array_key_exists-檢查給定的鍵名或索引是否存在于數(shù)組中array_keys-返回?cái)?shù)組中所有的鍵名array_map-將回調(diào)函數(shù)作用到給定數(shù)組的單元上array_merge_recursive-遞歸地合并一個(gè)或多個(gè)數(shù)組array_merge-合并一個(gè)或多個(gè)數(shù)組array_multisort-對(duì)多個(gè)數(shù)組或多維數(shù)組進(jìn)展排序array_pad-用值將數(shù)組填補(bǔ)到指定長(zhǎng)度array_pop-將數(shù)組最后一個(gè)單元彈出出棧array_product-計(jì)算數(shù)組中所有值的乘積array_push-將一個(gè)或多個(gè)單元壓入數(shù)組的末尾入棧array_r

4、and-從數(shù)組中隨機(jī)取出一個(gè)或多個(gè)單元array_reduce-用回調(diào)函數(shù)迭代地將數(shù)組簡(jiǎn)化為單一的值array_reverse-返回一個(gè)單元順序相反的數(shù)組array_search-在數(shù)組中搜索給定的值,假設(shè)成功那么返回相應(yīng)的鍵名array_shift-將數(shù)組開(kāi)頭的單元移出數(shù)組array_slice-從數(shù)組中取出一段array_splice-把數(shù)組中的一部分去掉并用其它值取代array_sum-計(jì)算數(shù)組中所有值的和array_udiff_assoc-帶索引檢查計(jì)算數(shù)組的差集,用回調(diào)函數(shù)比較數(shù)據(jù)array_udiff_uassoc-帶索引檢查計(jì)算數(shù)組的差集,用回調(diào)函數(shù)比較數(shù)據(jù)和索引array_ud

5、iff-用回調(diào)函數(shù)比較數(shù)據(jù)來(lái)計(jì)算數(shù)組的差集array_uintersect_assoc-帶索引檢查計(jì)算數(shù)組的交集,用回調(diào)函數(shù)比較數(shù)據(jù)array_uintersect_uassoc-帶索引檢查計(jì)算數(shù)組的交集,用回調(diào)函數(shù)比較數(shù)據(jù)和索引array_uintersect-計(jì)算數(shù)組的交集,用回調(diào)函數(shù)比較數(shù)據(jù)array_unique-移除數(shù)組中重復(fù)的值array_unshift-在數(shù)組開(kāi)頭插入一個(gè)或多個(gè)單元array_values-返回?cái)?shù)組中所有的值array_walk_recursive-對(duì)數(shù)組中的每個(gè)成員遞歸地應(yīng)用用戶函數(shù)array_walk-對(duì)數(shù)組中的每個(gè)成員應(yīng)用用戶函數(shù)array-新建一個(gè)數(shù)組ar

6、sort-對(duì)數(shù)組進(jìn)展逆向排序并保持索引關(guān)系asort-對(duì)數(shù)組進(jìn)展排序并保持索引關(guān)系compact-建立一個(gè)數(shù)組,包括變量名和它們的值count-計(jì)算數(shù)組中的單元數(shù)目或?qū)ο笾械膶傩詡€(gè)數(shù)current-返回?cái)?shù)組中的當(dāng)前單元each-返回?cái)?shù)組中當(dāng)前的鍵/值對(duì)并將數(shù)組指針向前挪動(dòng)一步end-將數(shù)組的內(nèi)部指針指向最后一個(gè)單元extract-從數(shù)組中將變量導(dǎo)入到當(dāng)前的符號(hào)表in_array-檢查數(shù)組中是否存在某個(gè)值key-從關(guān)聯(lián)數(shù)組中獲得鍵名krsort-對(duì)數(shù)組按照鍵名逆向排序ksort-對(duì)數(shù)組按照鍵名排序list-把數(shù)組中的值賦給一些變量natcasesort-用"自然排序"算法對(duì)數(shù)

7、組進(jìn)展不區(qū)分大小寫(xiě)字母的排序natsort-用"自然排序"算法對(duì)數(shù)組排序next-將數(shù)組中的內(nèi)部指針向前挪動(dòng)一位pos-current的別名p rev-將數(shù)組的內(nèi)部指針倒回一位range-建立一個(gè)包含指定范圍單元的數(shù)組reset-將數(shù)組的內(nèi)部指針指向第一個(gè)單元rsort-對(duì)數(shù)組逆向排序shuffle-將數(shù)組打亂sizeof-count的別名sort-對(duì)數(shù)組排序uasort-使用用戶自定義的比較函數(shù)對(duì)數(shù)組中的值進(jìn)展排序并保持索引關(guān)聯(lián)uksort-使用用戶自定義的比較函數(shù)對(duì)數(shù)組中的鍵名進(jìn)展排序usort-使用用戶自定義的比較函數(shù)對(duì)數(shù)組中的值進(jìn)展排序call_user_metho

8、d_array-調(diào)用一個(gè)用戶方法,同時(shí)傳遞參數(shù)數(shù)組已廢棄call_user_method-對(duì)特定對(duì)象調(diào)用用戶方法已廢棄class_exists-檢查類是否已定義get_class_methods-返回由類的方法名組成的數(shù)組get_class_vars-返回由類的默認(rèn)屬性組成的數(shù)組get_class-返回對(duì)象的類名get_declared_classes-返回由已定義類的名字所組成的數(shù)組get_declared_interfaces-返回一個(gè)數(shù)組包含所有已聲明的接口get_object_vars-返回由對(duì)象屬性組成的關(guān)聯(lián)數(shù)組get_parent_class-返回對(duì)象或類的父類名interface

9、_exists-檢查接口是否已被定義is_a-假設(shè)對(duì)象屬于該類或該類是此對(duì)象的父類那么返回TRUE is_subclass_of-假設(shè)此對(duì)象是該類的子類,那么返回TRUE method_exists-檢查類的方法是否存在property_exists-檢查對(duì)象或類是否具有該屬性checkdate-驗(yàn)證一個(gè)格里高里日期date_default_timezone_get-獲得一個(gè)腳本中所有日期時(shí)間函數(shù)所使用的默認(rèn)時(shí)區(qū)date_default_timezone_set-設(shè)定用于一個(gè)腳本中所有日期時(shí)間函數(shù)的默認(rèn)時(shí)區(qū)date_time_set-Sets the time date_timezone_ge

10、t-Return time zone relative to given DateTime date_timezone_set-Sets the time zone for the DateTime object date-格式化一個(gè)本地時(shí)間/日期getdate-獲得日期/時(shí)間信息gettimeofday-獲得當(dāng)前時(shí)間gmdate-格式化一個(gè)GMT/UTC日期/時(shí)間gmmktime-獲得GMT日期的UNIX時(shí)間戳gmstrftime-根據(jù)區(qū)域設(shè)置格式化GMT/UTC時(shí)間/日期idate-將本地時(shí)間日期格式化為整數(shù)localtime-獲得本地時(shí)間microtime-返回當(dāng)前Unix時(shí)間戳和微秒數(shù)

11、mktime-獲得一個(gè)日期的Unix時(shí)間戳strftime-根據(jù)區(qū)域設(shè)置格式化本地時(shí)間/日期strptime-解析由strftime生成的日期/時(shí)間strtotime-將任何英文文本的日期時(shí)間描繪解析為Unix時(shí)間戳time-返回當(dāng)前的Unix時(shí)間戳chdir-改變目錄chroot-改變根目錄dir-directory類closedir-關(guān)閉目錄句柄getcwd-獲得當(dāng)前工作目錄opendir-翻開(kāi)目錄句柄readdir-從目錄句柄中讀取條目rewinddir-倒回目錄句柄scandir-列出指定途徑中的文件和目錄basename-返回途徑中的文件名部分chgrp-改變文件所屬的組chmod-

12、改變文件形式chown-改變文件的所有者clearstatcache-去除文件狀態(tài)緩存copy-拷貝文件delete-參見(jiàn)unlink或unsetdirname-返回途徑中的目錄部分disk_free_space-返回目錄中的可用空間disk_total_space-返回一個(gè)目錄的磁盤(pán)總大小diskfreespace-disk_free_space的別名fclose-關(guān)閉一個(gè)已翻開(kāi)的文件指針feof-測(cè)試文件指針是否到了文件完畢的位置fflush-將緩沖內(nèi)容輸出到文件fgetc-從文件指針中讀取字符fgetcsv-從文件指針中讀入一行并解析CSV字段fgets-從文件指針中讀取一行fgetss

13、-從文件指針中讀取一行并過(guò)濾掉HTML標(biāo)記file_exists-檢查文件或目錄是否存在file_get_contents-將整個(gè)文件讀入一個(gè)字符串file_put_contents-將一個(gè)字符串寫(xiě)入文件file-把整個(gè)文件讀入一個(gè)數(shù)組中fileatime-獲得文件的上次訪問(wèn)時(shí)間filectime-獲得文件的inode修改時(shí)間filegroup-獲得文件的組fileinode-獲得文件的inode filemtime-獲得文件修改時(shí)間fileowner-獲得文件的所有者fileperms-獲得文件的權(quán)限filesize-獲得文件大小filetype-獲得文件類型flock-輕便的咨詢文件鎖定f

14、nmatch-用形式匹配文件名fopen-翻開(kāi)文件或者URL fpassthru-輸出文件指針處的所有剩余數(shù)據(jù)fputcsv-將行格式化為CSV并寫(xiě)入文件指針fputs-fwrite的別名fread-讀取文件可平安用于二進(jìn)制文件fscanf-從文件中格式化輸入fseek-在文件指針中定位fstat-通過(guò)已翻開(kāi)的文件指針獲得文件信息ftell-返回文件指針讀/寫(xiě)的位置ftruncate-將文件截?cái)嗟浇o定的長(zhǎng)度f(wàn)write-寫(xiě)入文件可平安用于二進(jìn)制文件glob-尋找與形式匹配的文件途徑is_dir-判斷給定文件名是否是一個(gè)目錄is_executable-判斷給定文件名是否可執(zhí)行is_file-判斷

15、給定文件名是否為一個(gè)正常的文件is_link-判斷給定文件名是否為一個(gè)符號(hào)連接is_readable-判斷給定文件名是否可讀is_uploaded_file-判斷文件是否是通過(guò) POST上傳的is_writable-判斷給定的文件名是否可寫(xiě)is_writeable-is_writable的別名lchgrp-Changes group ownership of symlink lchown-Changes user ownership of symlink link-建立一個(gè)硬連接linkinfo-獲取一個(gè)連接的信息lstat-給出一個(gè)文件或符號(hào)連接的信息mkdir-新建目錄move_uploa

16、ded_file-將上傳的文件挪動(dòng)到新位置parse_ini_file-解析一個(gè)配置文件pathinfo-返回文件途徑的信息pclose-關(guān)閉進(jìn)程文件指針popen-翻開(kāi)進(jìn)程文件指針readfile-輸出一個(gè)文件readlink-返回符號(hào)連接指向的目的realpath-返回標(biāo)準(zhǔn)化的絕對(duì)途徑名rename-重命名一個(gè)文件或目錄rewind-倒回文件指針的位置rmdir-刪除目錄set_file_buffer-stream_set_write_buffer的別名stat-給出文件的信息symlink-建立符號(hào)連接tempnam-建立一個(gè)具有唯一文件名的文件tmpfile-建立一個(gè)臨時(shí)文件touch

17、-設(shè)定文件的訪問(wèn)和修改時(shí)間umask-改變當(dāng)前的umask unlink-刪除文件mail-發(fā)送郵件abs-絕對(duì)值acos-反余弦acosh-反雙曲余弦asin-反正弦asinh-反雙曲正弦atan2-兩個(gè)參數(shù)的反正切atan-反正切atanh-反雙曲正切base_convert-在任意進(jìn)制之間轉(zhuǎn)換數(shù)字bindec-二進(jìn)制轉(zhuǎn)換為十進(jìn)制ceil-進(jìn)一法取整cos-余弦cosh-雙曲余弦decbin-十進(jìn)制轉(zhuǎn)換為二進(jìn)制dechex-十進(jìn)制轉(zhuǎn)換為十六進(jìn)制decoct-十進(jìn)制轉(zhuǎn)換為八進(jìn)制deg2rad-將角度轉(zhuǎn)換為弧度exp-計(jì)算e的指數(shù)expm1-返回expnumber 1,甚至當(dāng)number的值接

18、近零也能計(jì)算出準(zhǔn)確結(jié)果floor-舍去法取整fmod-返回除法的浮點(diǎn)數(shù)余數(shù)getrandmax-顯示隨機(jī)數(shù)最大的可能值hexdec-十六進(jìn)制轉(zhuǎn)換為十進(jìn)制hypot-計(jì)算一直角三角形的斜邊長(zhǎng)度is_finite-判斷是否為有限值is_infinite-判斷是否為無(wú)限值is_nan-判斷是否為合法數(shù)值lcg_value-組合線性同余發(fā)生器log10-以10為底的對(duì)數(shù)log1p-返回log1+number,甚至當(dāng)number的值接近零也能計(jì)算出準(zhǔn)確結(jié)果log-自然對(duì)數(shù)max-找出最大值min-找出最小值mt_getrandmax-顯示隨機(jī)數(shù)的最大可能值mt_rand-生成更好的隨機(jī)數(shù)mt_sra n

19、d-播下一個(gè)更好的隨機(jī)數(shù)發(fā)生器種子octdec-八進(jìn)制轉(zhuǎn)換為十進(jìn)制pi-得到圓周率值pow-指數(shù)表達(dá)式rad2deg-將弧度數(shù)轉(zhuǎn)換為相應(yīng)的角度數(shù)rand-產(chǎn)生一個(gè)隨機(jī)整數(shù)round-對(duì)浮點(diǎn)數(shù)進(jìn)展四舍五入sin-正弦sinh-雙曲正弦sqrt-平方根srand-播下隨機(jī)數(shù)發(fā)生器種子tan-正切tanh-雙曲正切mysql_affected_rows-獲得前一次MySQL操作所影響的記錄行數(shù)mysql_change_user-改變活動(dòng)連接中登錄的用戶mysql_client_encoding-返回字符集的名稱mysql_close-關(guān)閉MySQL連接mysql_connect-翻開(kāi)一個(gè)到MySQL

20、效勞器的連接mysql_create_db-新建一個(gè)MySQL數(shù)據(jù)庫(kù)mysql_data_seek-挪動(dòng)內(nèi)部結(jié)果的指針mysql_db_name-獲得結(jié)果數(shù)據(jù)mysql_db_query-發(fā)送一條MySQL查詢mysql_drop_db-丟棄刪除一個(gè)MySQL數(shù)據(jù)庫(kù)mysql_errno-返回上一個(gè)MySQL操作中的錯(cuò)誤信息的數(shù)字編碼mysql_error-返回上一個(gè)MySQL操作產(chǎn)生的文本錯(cuò)誤信息mysql_escape_string-轉(zhuǎn)義一個(gè)字符串用于mysql_query mysql_fetch_array-從結(jié)果集中獲得一行作為關(guān)聯(lián)數(shù)組,或數(shù)字?jǐn)?shù)組,或二者兼有mysql_fetch_a

21、ssoc-從結(jié)果集中獲得一行作為關(guān)聯(lián)數(shù)組mysql_fetch_field-從結(jié)果集中獲得列信息并作為對(duì)象返回mysql_fetch_lengths-獲得結(jié)果集中每個(gè)輸出的長(zhǎng)度mysql_fetch_object-從結(jié)果集中獲得一行作為對(duì)象mysql_fetch_row-從結(jié)果集中獲得一行作為枚舉數(shù)組mysql_field_flags-從結(jié)果中獲得和指定字段關(guān)聯(lián)的標(biāo)志mysql_field_len-返回指定字段的長(zhǎng)度mysql_field_name-獲得結(jié)果中指定字段的字段名mysql_field_seek-將結(jié)果集中的指針設(shè)定為制定的字段偏移量mysql_field_table-獲得指定字段

22、所在的表名mysql_field_type-獲得結(jié)果集中指定字段的類型mysql_free_result-釋放結(jié)果內(nèi)存mysql_get_client_info-獲得MySQL客戶端信息mysql_get_host_info-獲得MySQL主機(jī)信息mysql_get_proto_info-獲得MySQL協(xié)議信息mysql_get_server_info-獲得MySQL效勞器信息mysql_info-獲得最近一條查詢的信息mysql_insert_id-獲得上一步INSERT操作產(chǎn)生的ID mysql_list_dbs-列出MySQL效勞器中所有的數(shù)據(jù)庫(kù)mysql_list_fields-列出M

23、ySQL結(jié)果中的字段mysql_list_processes-列出MySQL進(jìn)程mysql_list_tables-列出MySQL數(shù)據(jù)庫(kù)中的表mysql_num_fields-獲得結(jié)果集中字段的數(shù)目mysql_num_rows-獲得結(jié)果集中行的數(shù)目mysql_pconnect-翻開(kāi)一個(gè)到MySQL效勞器的持久連接mysql_ping-Ping一個(gè)效勞器連接,假設(shè)沒(méi)有連接那么重新連接mysql_query-發(fā)送一條MySQL查詢mysql_real_escape_string-轉(zhuǎn)義SQL語(yǔ)句中使用的字符串中的特殊字符,并考慮到連接的當(dāng)前字符集mysql_result-獲得結(jié)果數(shù)據(jù)mysql_se

24、lect_db-選擇MySQL數(shù)據(jù)庫(kù)mysql_stat-獲得當(dāng)前系統(tǒng)狀態(tài)mysql_tablename-獲得表名mysql_thread_id-返回當(dāng)前線程的ID mysql_unbuffered_query-向MySQL發(fā)送一條SQL查詢,并不獲取和緩存結(jié)果的行flush-刷新輸出緩沖ob_clean-Cleanerasethe output buffer ob_end_clean-Cleanerasethe output buffer and turn off output buffering ob_end_flush-Flushsendthe output buffer an dtur

25、n off output buffering ob_flush-Flushsendthe output buffer ob_get_clean-Get current buffer contents and delete current output buffer ob_get_contents-Return the contents of the output buffer ob_get_flush-Flush the output buffer,return it as astring and turn off output buffering ob_get_length-Return t

26、he length of the output buffer ob_get_level-Return the nesting level of the output buffering mechanism ob_get_status-Get status of output buffers ob_gzhandler-ob_start callback function to gzip output buffer ob_implicit_flush-Turn implicit flush on/off ob_list_handlers-List all output handlers in us

27、e ob_start-Turn on output buffering output_add_rewrite_var-Add URL rewriter values output_reset_rewrite_vars-Reset URL rewriter values preg_grep-返回與形式匹配的數(shù)組單元preg_last_error-Returns the error code of the last PCRE regex execution preg_match_all-進(jìn)展全局正那么表達(dá)式匹配preg_match-進(jìn)展正那么表達(dá)式匹配preg_quote-轉(zhuǎn)義正那么表達(dá)式字符pr

28、eg_replace_callback-用回調(diào)函數(shù)執(zhí)行正那么表達(dá)式的搜索和交換preg_replace-執(zhí)行正那么表達(dá)式的搜索和交換preg_s plit-用正那么表達(dá)式分割字符串session_cache_expire-Return current cache expire session_cache_limiter-Get and/or set the current cache limiter session_commit-session_write_close的別名session_decode-Decodes session data from astring session_dest

29、roy-Destroys all data registered to asession session_encode-將當(dāng)前會(huì)話數(shù)據(jù)編碼為一個(gè)字符串session_get_cookie_params-Get the session cookie parameters session_id-Get and/or set the current session id session_is_registered-Find out whether aglobal variable is registered in asession session_module_name-Get and/or set

30、 the current session module session_name-Get and/or set the current session name session_regenerate_id-Update the current session id with anewly generated one session_register-Register one or more global variables with the current session session_save_path-Get and/or set the current session save pat

31、h session_set_cookie_params-Set the session cookie parameters session_set_save_handler-Sets user-level session storage functions session_start-Initiali ze session data session_unregister-Unregister aglobal variable from the current session session_unset-Free all session variables session_write_close

32、-Write session data and end session ereg_replace-正那么表達(dá)式交換ereg-正那么表達(dá)式匹配eregi_replace-不區(qū)分大小寫(xiě)的正那么表達(dá)式交換eregi-不區(qū)分大小寫(xiě)的正那么表達(dá)式匹配split-用正那么表達(dá)式將字符串分割到數(shù)組中spliti-用正那么表達(dá)式不區(qū)分大小寫(xiě)將字符串分割到數(shù)組中sql_regcase-產(chǎn)生用于不區(qū)分大小的匹配的正那么表達(dá)式addcslashes-以C語(yǔ)言風(fēng)格使用反斜線轉(zhuǎn)義字符串中的字符addslashes-使用反斜線引用字符串bin2hex-將二進(jìn)制數(shù)據(jù)轉(zhuǎn)換成十六進(jìn)制表示chop-rtrim的別名chr-返回指

33、定的字符chunk_split-將字符串分割成小塊count_chars-返回字符串所用字符的信息crc32-計(jì)算一個(gè)字符串的crc32多項(xiàng)式crypt-One-way string encryptionhashingecho-Output one or more strings explode-使用一個(gè)字符串分割另一個(gè)字符串fprintf-Write aformatted string to astream get_html_translation_table-Returns the translation table used by htmlspecialcharsand htmlenti

34、tieshebrev-Convert logical Hebrew text to visual text hebrevc-Convert logical Hebrew text to visual text with newline conversion html_entity_decode-Convert all HTML entities to their applicable characters htmlentities-Convert all applicable characters to HTML entities htmlspecialchars_decode-Convert

35、 special HTML entities back to characters htmlspecialchars-Convert special characters to HTML entities implode-Join array elements with astring join-別名implodelevenshtein-Calculate Levenshtein distance between two strings localeconv-Get numeric formatting information ltrim-Strip whitespaceor other ch

36、aractersfrom the beginning of astring md5_file-Calculates the md5 hash of agiven file md5-Calculate the md5 hash of astring metaphone-Calculate the metaphone key of astring money_format-Formats anumber as acurrency string nl_langinfo-Query language and locale information nl2br-Inserts HTML line brea

37、ks before all newlines in astring number_format-Format anumber with grouped thousands ord-Return ASCII value of character parse_str-Parses the string into variables print-Output astring printf-Output aformatted string quoted_printable_decode-Convert aquoted-p rintable string to an 8bit string quotem

38、eta-Quote meta characters rtrim-Strip whitespaceor other charactersfrom the end of astring setlocale-Set locale information sha1_file-Calculate the sha1 hash of afile sha1-Calculate the sha1 hash of astring similar_text-Calculate the similarity between two strings soundex-Calculate the soundex key o

39、f astring sprintf-Return aformatted string sscanf-Parses input from astring according to aformat str_getcsv-Parse aCSV string into an array str_ireplace-Case-insensitive version of str_replace.str_pad-Pad astring to acertain length with another string str_repeat-Repeat astring str_replace-Replace al

40、l occurrences of the search string with the replacement string str_rot13-Perform the rot13 transform on astring str_shuffle-Randomly shuffles astring str_split-Convert astring to an array str_word_count-Return information about words used in astring strcasecmp-Binary safe case-insensitive string com

41、parison strchr-別名str strstrcmp-Binary safe string comparison strcoll-Locale based string comparison strcspn-Find length of initial segment not matching mask strip_tags-Strip HTML and PHP tags from astring stripcslashes-Un-quote string quoted with addcslashesstripos-Find position of first occurrence

42、of acase-insensitive string stripslashes-Un-quote string quoted with addslashesstristr-Case-insensitive strstrstrlen-Get string length strnatcasecmp-Case insensitive string comparisons using a"natural order"algorithm strnatcmp-String comparisons using a"natural order"algorithm st

43、rncasecmp-Binary safe case-insensitive string comparison of the first ncharacters strncmp-Binary safe string comparison of the first ncharacters strpbrk-Search astring for any of aset of characters strpos-Find position of first occurrence of astring strrchr-Find the last occurrence of acharacter in

44、astring strrev-Reverse astring strripos-Find position of last occurrence of acase-insensitive string in astring strrpos-Find position of last occurrence of achar in astring strspn-Find length of initial segment matching mask strstr-Find first occurrence of astring strtok-Tokenize string strtolower-M

45、ake astring lowercase strtoupper-Make astring uppercase strtr-Translate certain characters substr_compare-Binary safe optionally case insensitive comparison of 2strings from an offset,up to length characters substr_count-Count the number of substring occurrences substr_replace-Replace text within aportion of astring substr-Return part of astring trim-Strip whitespaceor other charactersfrom the beginning and end of astring ucfirst-Make astring's first character uppercase ucwords-Uppercase the first character of each

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論