\URL

URL帮助类

Summary

Methods
Properties
Constants
ConvertUrlQuery()
GetUrlQuery()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

ConvertUrlQuery()

ConvertUrlQuery(string  $query) : array

将字符串参数变为数组

Parameters

string $query

Returns

array —

array (size=10) 'm' => string 'content' (length=7) 'c' => string 'index' (length=5) 'a' => string 'lists' (length=5) 'catid' => string '6' (length=1) 'area' => string '0' (length=1) 'author' => string '0' (length=1) 'h' => string '0' (length=1) 'region' => string '0' (length=1) 's' => string '1' (length=1) 'page' => string '1' (length=1)

GetUrlQuery()

GetUrlQuery(array  $query) : string

将参数变为字符串

Parameters

array $query

Returns

string —

'm=content&c=index&a=lists&catid=6&area=0&author=0&h=0®ion=0&s=1&page=1' (length=73)