PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
PHP split string and output array character example
The explode () function can be used in the split character function in PHP, but there must be a rule for using this function, such as separating by | or separating with other characters, so that
Method OnePhpUsing the explode function to split a string into an array$source= "Hello1,hello2,hello3,hello4,hello5";Separating strings by commas$hello=Explode(‘,‘,$source); For($index=0;$indexCount($hello);$index++){Echo $hello[$index];Echo""; }
String is a piece of cake, I summarize some common processing string functions.
1. Determine the length of a string
This is one of the most obvious examples of the article, the question is how we can determine the length of a string, and here we
The explode () function can be used to split character functions in PHP, but there must be a rule for using this function, such as separating the | or by other characters, so that we can use the explode to divide the string into an array and then
The segmented fields must be finite and small in number, and we cannot store infinitely many characters in a stringThe table that this field belongs to has a one-to-many relationship with the table associated with this field.For example, the
Most developers should have encountered the experience of storing a comma-separated string in the MySQL field, and this field should have several commonalities, regardless of whether the segmented field represents an ID or tag.
The divided
PHP Learning Series (1) -- string processing functions (4), php Functions
16. The hebrevc () function switches the flow of Hebrew text from right to left to the flow from left to right. It also converts the new line (\ n) to . Only ASCII characters
Most developers should have encountered the experience of storing a comma-separated string in the MySQL field, and this field should have several commonalities, regardless of whether the segmented field represents an ID or tag.
The divided
Ec (2); php Tutorial: getting started with string operation functions 1. definition and display definition of a string: Use & rdquo; to indicate echo () and print (), but print () has a return value, 1, echo () does not exist, but echo is faster
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.