Addcslashes -- add backslash escape characters to some characters in the string
Addslashes -- escape characters in a string in a specified way
Bin2hex -- convert binary data to hexadecimal Representation
Chr -- returns the ASCII code of a character.
Chapter 1 PHP Quick Start
PHP variables have three styles.
Short style: the PHP variable is the same as the form domain name in the HTML form. $ Tireqty
Moderate style: $ _ post ["tireqty"] $ _ get $ _ Request
Long style: $ http_post_vars
// Convert the binary representation of a number into hexadecimal format
String bin2hex (string tring)// Remove spaces at the end of the string
String rtrim (string)// Rtrim alias
String chop (string)// Remove spaces from both ends of the
String
Note the difference between single quotes and double quotes
Note the use of escape characters \, \ ", \ $
Use octal or hexadecimal characters to represent \ xf6
Echo "H \ xf6me"; // check whether such text encoding is supported
---------------
PHP Class 8 common functions for string splitting and php string splitting
Course Overview:
This lesson allows you to perform basic operations on strings.
String knowledge point:1. Introduction to string processing2. Common string Output Functions3.
PHP getallheaders cannot get the custom headers.
A custom http header is added to the client request. The request is as follows:
Custom http Request Header
var_dump(getallheaders);
At first, the getallheaders parameter was obtained, but it was
Note the use of escape characters \, \ ", \ $
Use octal or hexadecimal characters to represent \ xf6
Echo "H \ xf6me"; // check whether such text encoding is supported
--------------------- Output result ----------------------------------------
H e
-
The PHP Manual provides ready-made functions:
Getallheaders
(PHP 4, PHP 5)
Getallheaders-Fetch all HTTP request headers
Description
Array getallheaders (void)
Fetches all HTTP headers from the current request.
This function is an alias for
PHP Interview Questions and Answers, php Questions and answers
1. Write a function to implement the following functions:Convert the string "open_door" to "OpenDoor" and "make_by_id" to "MakeById ".Function str_change ($ str ){$ Str = str_replace ("_"
PHP-Based String operation functions and php string functions
1. Search for the character location function:
Strpos ($ str, search, [int]): // search for the first position of search in $ str starting from int; strrpos ($ str, search, [int]): //
Common php functions, php Functions
PHP string functions are the core component of PHP. These functions can be used without installation.
Function
Description
Addcslashes ()
Returns the string with the backslash added before
Php obtains coordinates transmitted from the header of ios or android, obtains the specific city and address through the Baidu interface, and saves them to the session .,
First, encapsulate a method to obtain the header file in the function. php
PHP string, phpstringPHP 5 String Function
The PHP String function is a core component of PHP. These functions can be used without installation.
Function
Description
Addcslashes ()
Returns the string with the backslash added
Php functions are learned 20 times a day (the next day), and php functions are learned the next day.
1,Ucfirst() Uppercase letters of a string
2,Ucwords() Uppercase letters of a string
3. htmlentities () converts characters into html entities.
4,
1. How strings are defined:1. Single quote "'2. Double quotes ""3. Delimiter Example: $str = String contentmystr; (Shelf written here)2. Commonly used string output functions:1.echo: Supports output of one or more variables faster than print2.print:
1. add elements to array
PHP is a weak language. Therefore
C Language In this way, the length is declared for the PHP array. The process of adding elements to it is also a process of declaration and initialization.
CopyCode The Code is as follows:
Let's take an example today: The code is as follows:Copy code ';Function she ($ a, $ B, $ c){Return array ($ c, $ B, $ );}List ($ x, $ y, $ z) = she (2, 3, 4 );Echo '$ x ='. $ x. '$ y ='. $ y. '$ z ='. $ z;?>The execution result is as
Definition and usageThe filter_var_array () function obtains multiple variables and their selected filters.This function is useful in filtering many values that do not require filter_var (), many.Returns an array of values required for the success
Reprinted-php question 1. write the results of the following code:
$ A = "Hello World! ";
$ B = $;
Print ("\ $ B = $ B
");
Print ('$ a = $
');
?>
$ B = Hello World!
$ A = $
// '\' Is an escape character, blocking the special usage of a single
PHP Eighth lesson string splitting common functions
Course Outline:
This lesson allows you to perform basic operations on strings.
String Knowledge Points:1. Introduction to Handling strings2. Commonly used string output functions3. Commonly used
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.