Browse Source

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
master
akulikov 16 years ago
parent
commit
856040c4ab
  1. 15
      classes/Sublimer.class.php

15
classes/Sublimer.class.php

@ -129,6 +129,21 @@ final class Sublimer
return implode(' ', $words); 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);
}
} }

Loading…
Cancel
Save