Copy code code as follows:
/**
* Simple-select sort Easy-selection sorts
*
* principle: once Each number in the selected array, make a note of the current position and assume it is the smallest number in the number of min=i
1. For the general variable, the variable into a PHP language format, written to the file, as long as the include this file is equivalent to loading the cache;2. For the array-type variables, the array into the PHP language definition array string,
The addition of an array (the top and end data are added (without limiting the number of bars) and the data operation is added anywhere in the middle).2~ the deletion of the array (the end of data deletion (not qualifying), as well as data deletion
Encryption | The position of data encryption in our lives has become more and more important, especially considering the large amount of transactions and data transmissions that occur on the web. If you are interested in adopting security measures,
PHP supports 8 original types, including 4 winning types, namely Boolean (Boolean), Integer (Shape), float/double (floating-point) and string (literal), and two composite types, namely: Array (array) and object (objects) ; Two special types, namely:
Data caching is one of the most common performance optimization methods in web development. At present, the main file cache or database cache two forms, database caching database is not an impossible thing, is indeed very good and important. I think
PHP supports 8 of original data types.
Four scalar types:
? Boolean (Boolean)
? Integer (integral type)
? Float (floating point type, also called double)
? String (strings)
Two types of composite:
? Array (arrays)
? Object (Objects)
Finally,
PHP saves data to MySQL
Plan to clean the data before the DAO layer, such as varchar for trim,int intval.
One day it suddenly occurred to me that the PHP intval range is the same as the MySQL int type?
Checked, not the same ...
http://php.net/manual/
Source:
//+------------------------+//| Pie3dfun. php//Common Functions |//+------------------------+Define ("Angle_step", 5); Defines the angle step when drawing an elliptical arcfunction Draw_getdarkcolor ($img, $CLR)//$CLR the corresponding dark
Build a connection, create a Connection object$db = new Mysqli ("localhost", "root", "123", "MyDB");Judging if there is an error/*if (mysqli_connect_error ()) {echo "Connection failed! ";Exit}*/Mysqli_connect_error () Die ("Connection Failed"):
One: Conversion of data typesGet type:GetType ($a);Determine if there is some type of data:Is_ type name ($a);1. (int) $a;2.settype ($a, int);Two: operator expressions1. Mathematical operators/except: integer In addition to integer result is decimal
String, Integer, floating-point number, logical, array, object, NULL.PHP stringThe string is a sequence of characters, such as "Hello world!",The string can be any text within the quotation marks, either single or double quotation marks can be
PHP does not need (or does not support) explicit type definitions in variable definitions; The variable type is determined by the context in which the variable is used. In other words, if you assign a string value to var,var becomes a string. If you
String$a = "String Type";?>IntegerInteger rule:
Integers must have at least one number (0-9)
Integers cannot contain commas or spaces
Integers cannot have decimal points
Integers can be both positive and negative
Integers
Source code: + ---------------------- + | pie3dfun. php public functions | + ---------------------- + define (ANGLE_STEP, 5); define the angle step functiondraw_getdarkcolor ($ img, $ clr) when drawing an elliptical arc) evaluate the dark color of $
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.