本文整理汇总了PHP中escape_quote函数的典型用法代码示例。如果您正苦于以下问题:PHP escape_quote函数的具体用法?PHP escape_quote怎么用?PHP escape_quote使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了escape_quote函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: print_suggs_elem
function print_suggs_elem( $suggs, $index, $text_input_idx ) {
echo "suggs[$text_input_idx][$index] = [";
foreach( $suggs as $key=>$val ) {
if( $val ) {
echo "'" . escape_quote( $val ) . "'";
if ( $key+1 < count( $suggs )) {
echo ", ";
}
}
}
echo "];\n";
}
示例2: error_handler
function error_handler($err)
{
echo "error = '" . escape_quote($err) . "';\n";
}
示例3: date
# DEFINED VARIABLE
# ----------------------------------------------------------------------
*/
$set_fulfilment_date = date("Y-m-d H:i:s");
$get_order_id = get_order_detail_by_number($order_number);
$order_detail = get_order_detail($get_order_id['order_id']);
$order_item = order_item($order_detail['order_id']);
$data_header_method = $_POST['order_payment_method'];
$data_header_name = escape_quote($_POST['order_confirm_name']);
$data_header_amount = clean_price($_POST['order_confirm_amount']);
$data_purchase_amount = $_POST['hidden_total_purchase'];
$data_shipping = $_POST['hidden_order_shipping_amount'];
$data_order_id = $_POST['hidden_order_id'];
$ship_address = ltrim(escape_quote($_POST['order_shipping_address']));
$ship_country = $_POST['order_shipping_country'];
$ship_province = $_POST['order_shipping_province'];
$ship_city = $_POST['order_shipping_city'];
/*
# ----------------------------------------------------------------------
# CALL FUNCTION
# ----------------------------------------------------------------------
*/
$courier = get_shipping($_POST['hidden_order_shipping_method'], 'Active');
$courier_rate = get_shipping_rate($courier['courier_id'], $ship_province, $ship_city);
$data_shipping = ceil($_POST['hidden_total_weight'] / $courier_rate['courier_weight']) * $courier_rate['courier_rate'];
$data_total = $data_purchase_amount + $data_shipping;
示例4: escape_quote
}
}
// END ISSET
/*
# ----------------------------------------------------------------------
# GENERAL
# ----------------------------------------------------------------------
*/
/* --- DEFINE VARIABLE --- */
$url = $_POST['url'];
$title = escape_quote($_POST['website_title']);
$description = escape_quote($_POST['website_description']);
$keywords = escape_quote($_POST['website_keywords']);
$analytics = $_POST['google_analytics'];
$phone = $_POST['company_phone'];
$address = escape_quote($_POST['company_address']);
$country = $_POST['company_country'];
$province = $_POST['company_province'];
$city = $_POST['company_city'];
$postal = $_POST['company_postal_code'];
$facebook = $_POST['company_facebook'];
$twitter = $_POST['company_twitter'];
$instagram = $_POST['company_instagram'];
$currency = $_POST['currency_rate'];
/* --- LOGO --- */
if (!empty($_FILES['color_image']['name'])) {
$image_name = substr($_FILES['color_image']['name'], 0, -4);
$image_type = substr($_FILES['color_image']['name'], -4);
$uploads_dir = 'files/common/';
$userfile_name = cleanurl(str_replace(array('(', ')', ' '), '_', $image_name)) . $image_type;
$userfile_tmp = $_FILES['color_image']['tmp_name'];