本文整理汇总了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');
}