These are all hard work. remember to look back !!! /* Echo & lt; markqqqqqq \ nqqqqqq & lt; br & gt; qqqqqqqqqqqqqqq \ rqqqqqqqqqqqqqqqqqqqqqqmark * // A new line of technical mark is required and written in the top level! // The role is similar to & quot; // The most fatal one. these can be hard-pressed. remember to look back !!!
/* Echo <mark
Qqqqqq \ nqqqqqq
Qqqqqqqqqqqqqqq \ rqqqqqqqqqqqqqqqqqqqqqq
Mark */
// The technical mark should be set to another line and written in the top level!
// Similar ""
// The most fatal point is that a mark cannot be followed by any symbols, that is, it must be used at the end of the code.
$ A = "aaaaaaaaaa ";
$ B = "bbbbbbbbbbbb ";
$ C = print ($ );
Echo"
";
Echo $ c;
Echo"
";
Echo $ a, $ B;
// 5b binary format; % c ASCII format
$ Format = "% B, % c ";
Printf ($ format, 100,200 );
Echo sprintf ($ format, 100,200 );
Echo"
";
// Strlen ()
// The space in the string is also counted as one.
// Use substr_count (string str, string sub, [int start, int length ])
$ Words = "ran zhang li ni ran ";
$ Handle = "ran ";
$ Count = substr_count ($ words, $ handle );
Echo $ count;
// Mixed str_word_count (string $ str, [int format, string $ child]);
// Format 0: default value. The number of returned words.
// 1: returns an array of words. The key is the index value.
// 2: returns an array of words. The key is the position of the first letter of the word.
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.