• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP stripcslashes函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中stripcslashes函数的典型用法代码示例。如果您正苦于以下问题:PHP stripcslashes函数的具体用法?PHP stripcslashes怎么用?PHP stripcslashes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了stripcslashes函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: update_new

 function update_new($stId)
 {
     $data = array('title' => $this->input->post('news_title'), 'an_text' => stripcslashes($this->input->post('news_content')), 'type' => $this->input->post('typeA'));
     $this->db->where('news_id', $stId);
     $this->db->update('announcement', $data);
     redirect('stadium/announcement/' . $this->input->post('st_id'));
 }
开发者ID:terkmods,项目名称:CBT,代码行数:7,代码来源:news.php


示例2: getGeocode

 public function getGeocode($lon, $lat)
 {
     $result = "";
     $result = json_decode(stripcslashes(file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?latlng=' . $lat . ',' . $lon . '&sensor=false&language=ru')));
     sleep(4);
     return $result;
 }
开发者ID:mmiihaisyrbu,项目名称:gps_data,代码行数:7,代码来源:GpsData.php


示例3: tokenize

    /**
     * Tokenizes a string.
     *
     * @param string $input The input to tokenise
     * @throws \InvalidArgumentException When unable to parse input (should never happen)
     */
    private function tokenize($input)
    {
        $input = preg_replace('/(\r\n|\r|\n|\t)/', ' ', $input);

        $tokens = array();
        $length = strlen($input);
        $cursor = 0;
        while ($cursor < $length) {
            if (preg_match('/\s+/A', $input, $match, null, $cursor)) {
            } elseif (preg_match('/([^="\' ]+?)(=?)('.self::REGEX_QUOTED_STRING.'+)/A', $input, $match, null, $cursor)) {
                $tokens[] = $match[1].$match[2].stripcslashes(str_replace(array('"\'', '\'"', '\'\'', '""'), '', substr($match[3], 1, strlen($match[3]) - 2)));
            } elseif (preg_match('/'.self::REGEX_QUOTED_STRING.'/A', $input, $match, null, $cursor)) {
                $tokens[] = stripcslashes(substr($match[0], 1, strlen($match[0]) - 2));
            } elseif (preg_match('/'.self::REGEX_STRING.'/A', $input, $match, null, $cursor)) {
                $tokens[] = stripcslashes($match[1]);
            } else {
                // should never happen
                // @codeCoverageIgnoreStart
                throw new \InvalidArgumentException(sprintf('Unable to parse input near "... %s ..."', substr($input, $cursor, 10)));
                // @codeCoverageIgnoreEnd
            }

            $cursor += strlen($match[0]);
        }

        return $tokens;
    }
开发者ID:Gregwar,项目名称:symfony,代码行数:33,代码来源:StringInput.php


示例4: command_calc

 public function command_calc($user, $channel, $args)
 {
     $calc = implode(" ", $args);
     $data = file_get_contents("http://www.google.com/ig/calculator?hl=en&q=" . urlencode($calc));
     $this->bot->privmsg($channel, "0|" . $data);
     $data = mb_convert_encoding($data, 'UTF-8', mb_detect_encoding($data, 'UTF-8, ISO-8859-1', true));
     //print("1|".$data . "\n");
     $this->bot->privmsg($channel, "1|" . $data);
     $data = preg_replace("/([,{])(.*?):/", '$1"$2":', $data);
     //hack, convert js to json.
     //print("2|".$data . "\n");
     $this->bot->privmsg($channel, "2|" . $data);
     $data = stripcslashes($data);
     //print("3|".$data . "\n");
     $this->bot->privmsg($channel, "3|" . $data);
     $data = preg_replace("/<sup>(.*?)<\\/sup>/", '^$1', $data);
     //print("4|".$data . "\n");
     $this->bot->privmsg($channel, "4|" . $data);
     $data = preg_replace("/&#215;/", '\\u00d7', $data);
     //print("5|".$data . "\n");
     $this->bot->privmsg($channel, "5|" . $data);
     $data = json_decode($data, 1);
     //foreach ($data as &$node) { $node = html_entity_decode($node); }
     //print_r($data);
     $this->bot->privmsg($channel, "6|" . json_encode($data));
     $this->bot->privmsg($channel, $data["lhs"] . " = " . $data["rhs"]);
     //$this->bot->privmsg($channel, json_encode(array($data[error], $data[icc], $calc))); //DEBUG
 }
开发者ID:KimimaroTsukimiya,项目名称:SinZPHPBot,代码行数:28,代码来源:plugin.php


示例5: upload

 function upload($dir, $insert = true)
 {
     $dir = $dir ? $dir : date("Ym");
     if (!$this->isdir($dir)) {
         if ($this->mkdir($dir) == false) {
             return array('status' => 'error', 'msg' => '目录创建失败.' . $d->getErrorMsg());
         }
     }
     $dir = trim($dir, '/');
     $response = $imgService->uzUpload("/" . $dir . "/" . md5(TIMESTAMP) . '.jpg', NULL);
     $json = array();
     if ($response->isSuccess()) {
         $img = $response->getResult();
         $json['img_name'] = $img->name;
         $json['img_id'] = $img->id;
         $json['dir_id'] = $img->dirId;
         $json['img_size'] = $img->size;
         $json['img_url'] = stripcslashes($img->url);
         $json['dir_name'] = $dir;
         $json['dateline'] = TIMESTAMP;
         if ($insert) {
             //	$json['id'] = $this->insert($json);
         }
         $json['status'] = 'success';
         $json['msg'] = '上传成功';
     } else {
         $json['status'] = 'error';
         $json['msg'] = '上传失败.' . $response->getErrorMsg();
     }
     return $json;
 }
开发者ID:lqlstudio,项目名称:ttae_open,代码行数:31,代码来源:image.class.php


示例6: indexAction

 public function indexAction()
 {
     //validate if ajax request
     if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
         //redirect request if not login, this will not work if the ajax is requested
         if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
             $this->getResponse()->setBody(Mage::helper('core')->jsonEncode(array("PLEASE LOGIN!")));
         }
         //declare the store_id and customer_id
         $customer_id = Mage::getSingleton('customer/session')->getId();
         $store_id = Mage::app()->getStore()->getStoreId();
         //popup content
         $model = Mage::getModel("singpost_login/profile");
         $data = $model->getNotification();
         //check if close forever
         $notif_logs = $model->getNotificationLogs($customer_id);
         //check login count
         $login_count = $model->getUserLogCount($customer_id, $store_id);
         //insert to array and response as json
         $array = array('content' => stripcslashes($data[0]['content']), 'event' => $notif_logs, 'login_count' => $login_count['count']);
         $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($array));
     } else {
         //url request send back to the redirect
         Mage::app()->getResponse()->setRedirect(Mage::getUrl('customer/account/login'));
     }
 }
开发者ID:monarcmoso,项目名称:beta2,代码行数:26,代码来源:NotificationController.php


示例7: send_email_exchange

function send_email_exchange($user, $pw, $supporter_KEY, $contact_array)
{
    global $db;
    $sql = 'select Email,First_Name, Last_Name from supporter where supporter_KEY =' . $supporter_KEY;
    $S = $db->Execute($sql) or die($db->errorMsg());
    $s = $S->FetchRow();
    $contact_array['supporter_KEY'] = $supporter_KEY;
    #replace the merge fields
    $contact_array['Notes'] = str_replace('[[First_Name]]', $s['First_Name'], $contact_array['Notes']);
    $contact_array['Notes'] = str_replace('[[Last_Name]]', $s['Last_Name'], $contact_array['Notes']);
    $contact_array['Notes'] = stripcslashes($contact_array['Notes']);
    #testing send
    #echo '<pre>';
    #echo $s['Email'].'<br>';
    #echo $contact_array['Codes'].'<br>';
    #echo $contact_array['Notes'].'<br>';
    #print_r($contact_array);
    #echo '</pre>';
    #send to exchange
    $exchangeclient = new ExchangeClient();
    #$exchangeclient->init($user,$pw , NULL, EXCHANGE_SERVER);
    #$send = $exchangeclient->send_message($s['Email'], $contact_array['Codes'],$contact_array['Notes'], 'HTML',true, false);
    $exchangeclient->init($user, $pw);
    $send = $exchangeclient->send_message($s['Email'], $contact_array['Codes'], $contact_array['Notes'], 'HTML', true, false);
    $contact = new ContactHistory($contact_array);
    $contact->data['supporter_KEY'] = $supporter_KEY;
    $contact->save();
    #save_contact($supporter_KEY, $contact_array);
    echo $x . 'emails sent';
}
开发者ID:radicaldesigns,项目名称:jaguar,代码行数:30,代码来源:send_email_exchange.php


示例8: loginUser

 static function loginUser($input)
 {
     $input = trim($input);
     $input = stripcslashes($input);
     $input = htmlspecialchars($input);
     return $input;
 }
开发者ID:TechmasterPHP7,项目名称:slimshop-project,代码行数:7,代码来源:Validate.php


示例9: actionLogin

 /**
  * Method for validation Admin
  * data from entrance
  *
  * @var $username
  * @var $password
  */
 public function actionLogin()
 {
     include_once $_SERVER['DOCUMENT_ROOT'] . '/Storage.php';
     $db = Storage::getInstance();
     $mysqli = $db->getConnection();
     if (isset($_POST['username'])) {
         $username = $_POST['username'];
         $username = stripslashes($username);
         if ($username !== '[email protected]') {
             header('Location: /admin/login?error=1');
         } else {
             if (isset($_POST['password'])) {
                 $password = $_POST['password'];
                 $password = stripcslashes($password);
             }
             $sql_query = "SELECT * FROM users WHERE email='{$username}' AND password='{$password}'";
             $result = $mysqli->query($sql_query);
             session_start();
             if ($result->num_rows == 1) {
                 $_SESSION['admin'] = $username;
                 header("Location: /admin/");
             } else {
                 header("Location: /admin/login?error=1");
             }
             session_write_close();
         }
     }
 }
开发者ID:naisly,项目名称:WodenS,代码行数:35,代码来源:AdminController.php


示例10: getArgumentsAsString

 protected function getArgumentsAsString(array $arguments)
 {
     foreach ($arguments as $key => $argument) {
         $arguments[$key] = is_string($argument) ? trim($argument, "''") : $this->parseArgumentAsString($argument);
     }
     return stripcslashes(trim(json_encode($arguments, JSON_UNESCAPED_UNICODE), '[]'));
 }
开发者ID:neronmoon,项目名称:Codeception,代码行数:7,代码来源:Step.php


示例11: editInput

 public function editInput($table, $field, $attrs, $value)
 {
     if ($field["type"] == "enum") {
         $options = array("" => array());
         $selected = $value;
         if (isset($_GET["select"])) {
             $options[""][-1] = lang('original');
         }
         if ($field["null"]) {
             $options[""][""] = "NULL";
             if ($value === null && !isset($_GET["select"])) {
                 $selected = "";
             }
         }
         $options[""][0] = lang('empty');
         preg_match_all("~'((?:[^']|'')*)'~", $field["length"], $matches);
         foreach ($matches[1] as $i => $val) {
             $val = stripcslashes(str_replace("''", "'", $val));
             $options[$i + 1] = $val;
             if ($value === $val) {
                 $selected = $i + 1;
             }
         }
         return "<select{$attrs}>" . optionlist($options, (string) $selected, 1) . "</select>";
         // 1 - use keys
     }
 }
开发者ID:DBnR1,项目名称:EDTB,代码行数:27,代码来源:enum-option.php


示例12: readINIfile

function readINIfile($filename, $commentchar)
{
    $array1 = file($filename);
    $section = '';
    foreach ($array1 as $filedata) {
        $dataline = trim($filedata);
        $firstchar = substr($dataline, 0, 1);
        if ($firstchar != $commentchar && $dataline != '') {
            //It's an entry (not a comment and not a blank line)
            if ($firstchar == '[' && substr($dataline, -1, 1) == ']') {
                //It's a section
                $section = strtolower(substr($dataline, 1, -1));
            } else {
                //It's a key...
                $delimiter = strpos($dataline, '=');
                if ($delimiter > 0) {
                    //...with a value
                    $key = trim(substr($dataline, 0, $delimiter));
                    $value = trim(substr($dataline, $delimiter + 1));
                    if (substr($value, 0, 1) == '"' && substr($value, -1, 1) == '"') {
                        $value = substr($value, 1, -1);
                    }
                    $array2[$section][$key] = stripcslashes($value);
                } else {
                    //...without a value
                    $array2[$section][strtolower(trim($dataline))] = '';
                }
            }
        } else {
            //It's a comment or blank line.  Ignore.
        }
    }
    return $array2;
}
开发者ID:laiello,项目名称:ya-playsms,代码行数:34,代码来源:readwriteIniFile.php


示例13: displayPoll

 /**
  * Display Poll
  * Gives the HTML for the poll to display on the front-end
  * 
  * @param array $args
  * @return string
  */
 public function displayPoll(array $args)
 {
     $limit = get_option('sp_limit');
     if (isset($args['id'])) {
         $pollid = $args['id'];
         $poll = $this->grabPoll($pollid);
         if (isset($poll['question'])) {
             $question = stripcslashes($poll['question']);
             $answers = $poll['answers'];
             $answersother = $poll['answersother'];
             $totalvotes = $poll['totalvotes'];
             foreach ($answers as $key => $answer) {
                 $answers[$key]['answer'] = stripcslashes($answer['answer']);
             }
             ob_start();
             $postFile = plugins_url(SP_SUBMIT, dirname(__FILE__));
             $thisPage = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
             $userCannotTakePoll = false;
             if ($limit == 'yes' && isset($_COOKIE['sptaken']) && in_array($args['id'], unserialize($_COOKIE['sptaken'])) || isset($_GET['simply-poll-return'])) {
                 $userCannotTakePoll = true;
             }
             include SP_DIR . SP_DISPLAY;
             $content = ob_get_clean();
             return $content;
         }
     }
 }
开发者ID:ayubadiputra,项目名称:simply-poll,代码行数:34,代码来源:simplypoll.php


示例14: css_get_font_family

 public static function css_get_font_family($css_array)
 {
     if (!empty($css_array['font_family'])) {
         $explode_font_family = explode('_', $css_array['font_family']);
         $font_id = $explode_font_family[1];
         switch ($explode_font_family[0]) {
             //fonts from files (links to files)
             case 'file':
                 $css_array['font_family'] = stripcslashes(td_global::$td_options['td_fonts_user_inserted']['font_family_' . $font_id]);
                 break;
                 //fonts from type kit
             //fonts from type kit
             case 'tk':
                 $css_array['font_family'] = stripcslashes(td_global::$td_options['td_fonts_user_inserted']['type_kit_font_family_' . $font_id]);
                 break;
                 //fonts from font stacks
             //fonts from font stacks
             case 'fs':
                 $css_array['font_family'] = self::$font_stack_list['fs_' . $font_id];
                 break;
                 //fonts from google
             //fonts from google
             case 'g':
                 $google_font_name = trim(self::$font_names_google_list[$font_id]);
                 //search for space in google font names
                 if (preg_match('/\\s/', $google_font_name)) {
                     $google_font_name = '"' . $google_font_name . '"';
                 }
                 $css_array['font_family'] = $google_font_name;
                 break;
         }
     }
     return $css_array;
 }
开发者ID:Vatia13,项目名称:tofido,代码行数:34,代码来源:td_fonts.php


示例15: ReadThemePack

 public function ReadThemePack($theme, &$recArr = array())
 {
     $theme_dir = OPENBIZ_THEME_PATH . DIRECTORY_SEPARATOR . $theme;
     $theme_metafile = $theme_dir . DIRECTORY_SEPARATOR . "theme.xml";
     if (is_file($theme_metafile)) {
         $metadata = file_get_contents($theme_metafile);
         $xmldata = new SimpleXMLElement($metadata);
         foreach ($xmldata as $key => $value) {
             if (substr($key, 0, 1) != "@") {
                 $str = (string) $value;
                 $str = str_replace('\\n', "\n", $str);
                 $str = stripcslashes($str);
                 $recArr[$key] = $str;
             }
         }
     }
     if (is_file(OPENBIZ_THEME_PATH . DIRECTORY_SEPARATOR . $theme . DIRECTORY_SEPARATOR . "images" . DIRECTORY_SEPARATOR . $recArr['icon'])) {
         $recArr['icon_url'] = OPENBIZ_THEME_URL . "/{$theme}/images/" . $recArr['icon'];
     } else {
         $recArr['icon_url'] = OPENBIZ_THEME_URL . "/{$theme}/images/spacer.gif";
     }
     if (is_file(OPENBIZ_THEME_PATH . DIRECTORY_SEPARATOR . $theme . DIRECTORY_SEPARATOR . "images" . DIRECTORY_SEPARATOR . $recArr['preview'])) {
         $recArr['preview_url'] = OPENBIZ_THEME_URL . "/{$theme}/images/" . $recArr['preview'];
         return $recArr;
     } else {
         $recArr['preview_url'] = OPENBIZ_THEME_URL . "/{$theme}/images/spacer.gif";
     }
 }
开发者ID:openbizx,项目名称:openbizx-cubix,代码行数:28,代码来源:ThemeSelector.php


示例16: new_employee_form

 function new_employee_form($employer = null)
 {
     $redirect = isset($_POST['hrm_dataAttr']['redirect']) && !empty($_POST['hrm_dataAttr']['redirect']) ? $_POST['hrm_dataAttr']['redirect'] : '';
     $job_title = json_decode(stripcslashes($_POST['hrm_dataAttr']['job_title']));
     $job_category = json_decode(stripcslashes($_POST['hrm_dataAttr']['job_category']));
     $location = json_decode(stripcslashes($_POST['hrm_dataAttr']['location']));
     $employer_id = isset($employer->ID) ? $employer->ID : '';
     if ($employer === null) {
         $hidden_form['user_name'] = array('label' => __('User Name', 'hrm'), 'type' => 'text', 'extra' => array('data-hrm_validation' => true, 'data-hrm_required' => true, 'data-hrm_required_error_msg' => __('This field is required', 'hrm')));
         $hidden_form['email'] = array('label' => __('E-mail', 'hrm'), 'type' => 'text', 'extra' => array('data-hrm_validation' => true, 'data-hrm_required' => true, 'data-hrm_email' => true, 'data-hrm_required_error_msg' => __('This field is required', 'hrm'), 'data-hrm_email_error_msg' => __('Please enter a valid email', 'hrm')));
     } else {
         $hidden_form['employer_id'] = array('value' => $employer_id, 'type' => 'hidden');
     }
     $hidden_form['first_name'] = array('label' => __('First Name', 'hrm'), 'type' => 'text', 'value' => get_user_meta($employer_id, 'first_name', true), 'extra' => array('data-hrm_validation' => true, 'data-hrm_required' => true, 'data-hrm_required_error_msg' => __('This field is required', 'hrm')));
     $hidden_form['last_name'] = array('label' => __('Last Name', 'hrm'), 'type' => 'text', 'value' => get_user_meta($employer_id, 'last_name', true), 'extra' => array('data-hrm_validation' => true, 'data-hrm_required' => true, 'data-hrm_required_error_msg' => __('This field is required', 'hrm')));
     $hidden_form['job_title'] = array('label' => __('Job Title', 'hrm'), 'type' => 'select', 'option' => $job_title, 'selected' => get_user_meta($employer_id, '_job_title', true), 'extra' => array('data-hrm_validation' => true, 'data-hrm_required' => true, 'data-hrm_required_error_msg' => __('This field is required', 'hrm')));
     $hidden_form['job_category'] = array('label' => __('Job Category', 'hrm'), 'type' => 'select', 'option' => $job_category, 'selected' => get_user_meta($employer_id, '_job_category', true), 'extra' => array('data-hrm_validation' => true, 'data-hrm_required' => true, 'data-hrm_required_error_msg' => __('This field is required', 'hrm')));
     $hidden_form['location'] = array('label' => __('Location', 'hrm'), 'type' => 'select', 'option' => $location, 'selected' => get_user_meta($employer_id, '_location', true), 'extra' => array('data-hrm_validation' => true, 'data-hrm_required' => true, 'data-hrm_required_error_msg' => __('This field is required', 'hrm')));
     $hidden_form['status'] = array('label' => __('status', 'hrm'), 'type' => 'select', 'option' => array('yes' => 'Enable', 'no' => 'Disable'), 'selected' => get_user_meta($employer_id, '_status', true));
     $hidden_form['mobile'] = array('label' => __('Mobile Number', 'hrm'), 'type' => 'text', 'value' => get_user_meta($employer_id, '_mob_number', true));
     $hidden_form['joined_date'] = array('label' => __('Joined Date', 'hrm'), 'type' => 'text', 'class' => 'hrm-datepicker', 'value' => get_user_meta($employer_id, '_joined_date', true));
     $hidden_form['job_desc'] = array('label' => __('Description', 'hrm'), 'type' => 'textarea', 'value' => get_user_meta($employer_id, '_job_desc', true));
     $hidden_form['action'] = 'new_employer';
     $hidden_form['header'] = 'Employee Information';
     $hidden_form['url'] = $redirect;
     ob_start();
     echo hrm_Settings::getInstance()->hidden_form_generator($hidden_form);
     $return_value = array('append_data' => ob_get_clean());
     return $return_value;
 }
开发者ID:Ejeus,项目名称:Human-Resource-Management-hrm,代码行数:30,代码来源:employeelist.php


示例17: Unescape

 /**
  * Enter description here...
  *
  * @param unknown_type $text
  * @return unknown
  */
 function Unescape($text)
 {
     if ($GLOBALS['configuration']['db_encoding'] && !is_numeric($text)) {
         return base64_decode($text);
     }
     return stripcslashes($text);
 }
开发者ID:rafasashi,项目名称:php-object-generator,代码行数:13,代码来源:class.pog_base.php


示例18: content

 public function content()
 {
     if (isset($_GET['user_id'])) {
         $user_id = $_GET['user_id'];
     } else {
         $user_id = Oedipus_LogInHelper::get_current_user_id();
     }
     $user = Oedipus_UsersHelper::get_user($user_id);
     if (Oedipus_LogInHelper::compare_user_id_to_currently_logged_in_id($user_id)) {
         echo '<h2>Your Account</h2>';
         $other_teams_heading = 'Your teams';
         echo '<p>Welcome to <em>Oedipus: Decision Maker</em>, ';
         echo stripcslashes($user['first_name'] . ' ' . $user['last_name']);
         echo "!</p>\n";
     } else {
         echo '<h2>' . stripcslashes($user['first_name'] . ' ' . $user['last_name']) . "'s Page</h2>\n";
         $other_teams_heading = 'Teams';
     }
     DBPages_PageRenderer::render_page_section('users', 'welcome');
     /*
      * Show the teams that this user already a user of.
      */
     #$team_root_url = $this->get_current_url_just_file();
     #
     #$team_root_url->set_get_variable('oo-page');
     #$team_root_url->set_get_variable('page-class', 'Oedipus_TeamPage');
 }
开发者ID:saulhoward,项目名称:oedipus-decision-maker,代码行数:27,代码来源:Oedipus_UserPage.inc.php


示例19: parameterize

 private function parameterize($text)
 {
     $text = trim($text, "[[");
     $text = trim($text, "]]");
     //Stolen from WordPress with love and gratitude.
     $atts = array();
     $pattern = '/(\\w+)\\s*=\\s*"([^"]*)"(?:\\s|$)|(\\w+)\\s*=\\s*\'([^\']*)\'(?:\\s|$)|(\\w+)\\s*=\\s*([^\\s\'"]+)(?:\\s|$)|"([^"]*)"(?:\\s|$)|(\\S+)(?:\\s|$)/';
     $text = preg_replace("/[\\x{00a0}\\x{200b}]+/u", " ", $text);
     if (preg_match_all($pattern, $text, $match, PREG_SET_ORDER)) {
         foreach ($match as $m) {
             if (!empty($m[1])) {
                 $atts[strtolower($m[1])] = stripcslashes($m[2]);
             } elseif (!empty($m[3])) {
                 $atts[strtolower($m[3])] = stripcslashes($m[4]);
             } elseif (!empty($m[5])) {
                 $atts[strtolower($m[5])] = stripcslashes($m[6]);
             } elseif (isset($m[7]) && strlen($m[7])) {
                 $atts[] = stripcslashes($m[7]);
             } elseif (isset($m[8])) {
                 $atts[] = stripcslashes($m[8]);
             }
         }
     } else {
         $atts = ltrim($text);
     }
     return $atts;
 }
开发者ID:TheFridayInstitute,项目名称:moodle_filter_deeplinks,代码行数:27,代码来源:filter.php


示例20: formatMessage

 function formatMessage($mess)
 {
     $mess = stripcslashes($mess);
     $mess = html_entity_decode($mess, ENT_NOQUOTES, 'UTF-8');
     $mess = utf8_encode($mess);
     return $mess;
 }
开发者ID:valarmoghulis,项目名称:php,代码行数:7,代码来源:converter.php



注:本文中的stripcslashes函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP stripfilename函数代码示例发布时间:2022-05-23
下一篇:
PHP strip_zids函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap