Php study Notes-variables because I have had some basics of other languages, so in my php notes, I usually only record some points that are easy to ignore in basic learning, different from other languages. It is not a comprehensive record of
Communication between the Android client and the PHP Server (2)
Overview
This section uses a simple demo program to briefly introduce the Android client to submit an order to the PHP server through JSON. after the PHP server processes the order,
Php Security? Problems
Php has many problems during installation, but the installation usually prompts the error at the end.Then yum install-y xxx can be used. The installation was successful at home yesterday and all the problems were solved.
PHP session control mysql determines that the user and password I post will be compared in the database, and then my SQL is like this
$ SQL = "select user, pass from user where user = '$ user' and pass =' $ pwd'"; $ result = mysql_query ($ SQL );
In my previous impressions, js of php development used to modify the page css style. the font attributes, background, and other styles of the page are basically fixed after the page is loaded, but today we can see that we can modify the page style
PHPString function category
1. search for the character location function:
Strpos ($ str, search, [int]): searches for the first position of search in $ str starting from int;
Stripos ($ str, search, [int]): the position where the string first
Php implements encryption and decryption of php code. you can modify the encryption class of php code according to your needs. The original class is as follows, which is a change to the previous encryption and decryption class, I hope to share it
Comparison between numbers and strings in PHP comparison operators in PHP is a bit odd and error-prone. the comparison rules are listed as follows:
1. when comparing the two characters in size, is the ASCII code size of the two characters
Beginner. You can directly call file_get_contents () to obtain the returned value. In addition, ajax calls containing file_get_contents do not have any response in the background. You can directly call file_get_contents () to obtain the returned
Description of the scope of the phpinclude variable by zhanhailiang date:
First, read include, which highlights "the code contained in include inherits the variable range of the row where include is located ":
When a file is included, the code
(3) PHP study Notes-basic syntax: variable creation
PHP does not have a command to create variables. it is created when the first value is assigned and automatically converted to the correct data type.
PHP naming rules:
A variable starts with $
Wampsever configuration problems I have installed wamp on the server, the port is set to 6666 after the site is configured, the computer can access through the LAN, the address is 10.10.10. **: 6666, the web page shows no problem. However, when the
For PHP regular expressions, thank you! [\ U4E00-\ u9FA5 \ uf900-\ ufa2d \ a-eA-E \ + \. \ s] {0, 1} $/This indicates that the uppercase and lowercase letters a to e
For example, A and B are all correct.
So we need to limit: how to write a
PHP anonymous functions 1. anonymous functions are temporarily created functions without names.
2. PHP supports anonymous functions from PHP5.3.0.
3. PHP anonymous functions are implemented through closures and are often used in callback functions.
The php magic method call _ call is one of the magic methods. when the program calls a method that is not declared in the current class or has no permission to call, it will call the _ call method.
class test{ public function emptyFunc(){
How does PHP delete the empty line of the first line $ _ POST = preg_replace ("/(\ n \ s * \ r)/I", '', $ _ POST );
This does not work.
The value of $ _ POST ['vod _ url_1 '] is
Today I love you 01 $227703131Today I love you 02
PHP automated code auditing technology ??
0x00
As there is nothing to update in the blog, I will summarize what I have done. as a blog, I will mainly talk about some of the technologies used in the project. At present, there are many PHP automated
The Android client and Php server are interconnected to implement an application market (including the server )! Android client and Php server are interconnected to implement an application market (including server)
The real Mall project is
The strnatcmp () function strnatcmp () is used to compare the numbers in a string by number.
$ Str1 = "mrsoft1 ";
$ Str2 = "MRSOFT2 ";
Echo strnatcmp ($ str1, $ str2 );
The expected result is-1, and the result is 1. what is the reason?
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service