method to create "get" string !no!ticket!number!
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@96 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -129,6 +129,21 @@ final class Sublimer
|
||||
return implode(' ', $words);
|
||||
}
|
||||
|
||||
function formGet(Array $replaces)
|
||||
{
|
||||
$get = $_GET; //дабы не менять дефолтный массив
|
||||
foreach($replaces as $key => $val) {
|
||||
$get[$key] = $val;
|
||||
}
|
||||
|
||||
$str = '?';
|
||||
foreach($get as $key => $val)
|
||||
{
|
||||
$str .= $key.'='.$val.'&';
|
||||
}
|
||||
|
||||
return mb_substr($str, 0, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user