Help a PHP reversible encryption and decryption algorithm
For example algorithm rules:
A=b
B=c
C=d
D=e
......
X=y
Y=z
Z=a
0=1
1=2
2=3
......
8=9
9=0
Letters and numbers are replaced by a certain size letter or number
Example:
Pre-encryption content:
How to still garbled after setting character set
$load _list is a two-dimensional array that takes the first two characters of the user_name value, followed by an asterisk, but is garbled after setting the character set, but Chinese is to display
Table of Contents [1] Variable variable definition variable assignment [2] data type string integer floating-point Boolean Array object null resource [3] scope globalstatic
Variable
Variable definition
A variable is a container for storing
1, Date_default_timezone_set ("PRC");// Set default time zone$t = time ();Echo $t;$d = Date("Y year M D Day H:i:s", $t);//Thedata function formats the timestamp as a more readable date and time. Echo $d;Display as: 14,646,786,492,016 May 31 15:10:492
Introduction to comments, variables, arrays, constants, and function applications in PHPThis article will detail the comments in PHP, variables, arrays, constants, function applications, the need for friends can refer to the followingWhat is the
Thinking back to the PHP design pattern, it seems that the memory is not complete. The PHP design pattern is reviewed here. Singleton mode : The core only includes a special class, to ensure that there is only one instance of the system, that is, a
Magic Method:PHP treats all the methods in the class that begin with __ (two underscores) as a magic method, and it is generally recommended that users do not prefix the custom method with __. Magic Method:1. __construct ()The default constructor
Using PHP to manipulate Oracle databases
11. Database connection
In the previous section, we have introduced some basic operational knowledge of PHP and MySQL database, and the most tutorials on PHP and MySQL in the Internet. MySQL is free, which
4. According to the database connection
With PHP you can easily connect to the database, request the data and display it in your Web site, or even modify the data in the database. MySQL is a very popular database, and there are many tutorials about
Copy Code code as follows:
$t 1 = Explode (', microtime ());
// ... Execute code ...
$t 2 = Explode (', microtime ());
Echo ($t 2[1]-$t 1[1]). ' S '. ($t 2[0]-$t 1[0]). ' Ms ';
In fact, a little trial, you can find that the code has a
1, the use of ping command to realize the delay, the method is clever and can be controlled, but the accuracy is not high. such as: Ping-n 3 127.0.0.1>nul approximately can pause 2 secondsThe number after-n is the number of packets sent, plus one
The first method:
Copy Code code as follows:
Ping 127.0.0.1-n 5000>nul
Dir c:\ >c:\1.txt
5 minutes delay to execute dir c:\
The second method
Copy Code code as follows:
:: sleep.bat-sleep/delay/wait N seconds
::
The example of this article summarizes the PHP array lookup function. Share to everyone for your reference. Specifically as follows:
Here are three ways to determine whether a string contains our defined words, which is more suitable for keyword
In the use of PHP process found that the PHP code you have written because the source code is placed on the server, so it is easy to be taken away by others casually modified (into their own development) use.
I've been looking for a software that
For the same Dockerfile,docker hub to build at different times there will be different results, as in the following building Tomcat Image: # based on CENTOS6 base mirroring from Centos:6 maintainer Chenyufeng " Yufengcode@gmail.com "
# Set the
Oh, the following code is a little messy ah, is what I do in the test, PHP mysql date calculation code [DATEDIFF] is also I need today to try it. Look at the code here.
function A ($d) {$Date _1=date ("y-m-d");$Date _2= $d;
$Date _list_a1=explode (
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.