* PHP string with single quote delimiter, supports two escapes \ ' and \ \* PHP string with double quotation mark delimiter, support the following escape (\ ' will output \ ', will also escape \ \):\ n line break (LF or ASCII characters 0x0A (10))\
Source: http://zhengj3.blog.51cto.com/6106/290724This repair task is designed to handle the following security issues:[1] SQL blind Injection[2] SQL Injection[3] XPath Injection[4] database error modes discovered[5] Cross-Site Scripting[6]
A flexible string.
Because of the flexibility of the expression, we can use the "mapping" method to bring up a string or function.
$a = ' B ';
$b = ' 123 ';
echo $ $a; This can output 123. But the better habit is the echo ${$a}, which is clearer.
$c
Sed ' s/pattern/replace_string/' fileReplace sed ' s/lifeng/lf/' sed.txt with LF for the first lifeng of each line in Sed.txt (the source file content will not change)To replace all content, command tail plus parameter g sed ' s/lifeng/lf/g'
sed (stream editor)
Function Description: Use script to process text files.Syntax: sed [-hnv][-e][-f][text file]Additional Note: SED can process and edit text files according to script instructions.Parameters:-e or--expression= the input text file
1, C , non-0 value is true, true with 1, 0 value is false, False with 0 is indicated. 2. Escape character Reference:
\a
Beep, Bell
\b
Fallback: Back one pane
\f
Page change
\ n
Line break
English title: Useful one-line SCRIPTS for SED (Unix stream editor)Original title: HANDY one-liners for SED (Unix stream editor) Finishing: Eric pement-e-mail: pemente[at]northpark[dot]edu version 5.5Translator: Joe-e-mail: hq00e[at]126[dot]com The
1 formatted output Format character conversion %c to character (ASCII value, or string of length) %ra precedence repr () function for string conversions %s precedence for string conversions with the str () function %d/% I convert to signed decimal
Three definitions of PHP strings: single quotes, double quotes, delimiters 1, and single quotes: the simplest way to specify a simple string is to enclose it with single quotes (characters. In a string enclosed by single quotes, to represent a
Sed (stream editor)
Function Description: Uses scripts to process text files.Syntax: sed [-hnV] [-e ] [-f ] [text file]Note: sed can process and edit text files according to script instructions.Parameters:-E or -- expression = processes input
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.