本文整理匯總了PHP中string::stripspecialcharacter方法的典型用法代碼示例。如果您正苦於以下問題:PHP string::stripspecialcharacter方法的具體用法?PHP string::stripspecialcharacter怎麽用?PHP string::stripspecialcharacter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類string
的用法示例。
在下文中一共展示了string::stripspecialcharacter方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: doupdateorder
function doupdateorder()
{
$channel_num = string::stripspecialcharacter(trim($this->post['order']));
$order = explode(",", $channel_num);
$_ENV['channel']->updateorder($order);
$this->cache->removecache('channel');
}
示例2: dochangeorder
function dochangeorder()
{
$link_num = string::stripspecialcharacter(trim($this->post['order']));
$order = explode(",", $link_num);
$_ENV['friendlink']->updateorder($order);
$this->cache->removecache('data_' . $GLOBALS['theme'] . '_index');
}
示例3: dorename
function dorename()
{
$title = string::hiconv(trim($this->post['newname']));
$title = string::substring(string::stripspecialcharacter($title), 0, 80);
if ($title == '') {
echo "-1";
} else {
if ($this->db->fetch_by_field('doc', 'title', $title)) {
echo "-2";
} elseif ($_ENV['doc']->change_name($this->post['did'], $title)) {
if (1 == $this->setting['cloud_search']) {
// 編輯標題 通知雲搜索
$_ENV['search']->cloud_change(array('dids' => $this->post['did'], 'mode' => '2'));
}
echo "1";
} else {
echo "0";
}
}
$this->cache->removecache('data_' . $GLOBALS['theme'] . '_index');
}