"PHP template Engine" Prototype prototype release! , prototype prototype
At the beginning of the article, we must first say sorry to the people who have been concerned about me! It was originally intended to complete the first edition of the PHP
Yii is a component-based (component-based) Web framework, and the Ccomponent class is the base class for all components.The Ccomponent class provides an attribute-based (property), event, and behavior (behavior) programming interface for subclasses.1
1. Create array is not new array (), is $aaa =array (), no new, array can pass in key value $aaa=array ("Key" = "value");2. Stitching strings with ".", not "+"3. The attribute of a class is not point, use->, and the attribute does not add $,ps: $obj-
PHP Hyper Global Variables $_get and $_post are used to collect form data (Form-data).PHP-a simple HTML formThe following example shows a simple HTML form that contains two input fields and a Submit button:Instance---source code1234
First, regular expression1. "/" stands for delimiters, "^" stands for the starting symbol, "$" for the end symbol$str 1= "Abc123def45ghjk6789lou";$str 2= "ABCDE5FG2H6JKL";$reg = "/\d/"; Match a number2. Echo preg_replace ($reg, "#", $str 1); Replace
Example of using PHP to export excel Data class library, excel class library
This example describes how to use PHP to export excel Data class libraries. We will share this with you for your reference. The details are as follows:
Today, a project is
Mysql (what is a relational database ?), Mysql database
Relational Database: a database built on a relational model.LINK model:How to process the entity structure when saving the entity (student) and entity attributes (student's student ID and name)
Delete element re-Indexing in php array, php array element Indexing
If you want to delete an element from an array, you can use the unset directly, but what you see today surprised me.
$ Arr = array ('A', 'B', 'C', 'D ');Unset ($ arr [1]);Print_r ($
1 PHP 7 improves performance by around 70%2 fixed variable type, error handling introduced3 zval using stack memory, PHP7 can use the stack memory directly.4 zend_string Store hash value, array query no longer need to repeat the hash calculation.PHP7
The 1.arsort () function sorts the associative array in descending order of key valuesArsort (array,sortingtype);
0 = sort_regular-default. Arrange each item in the usual order (standard ASCII, no change type)
1 = sort_numeric-Each item
Php can also be understood as a function for removing repeated values of arrays.
/*** Difference between array weighting * and the array_unique function: it requires that val be a string, this can be an array/object ** @ param $ arr array to be
This article mainly describes how to obtain the value of the first array unit of an array in php. In php built-in functions, the functions used to obtain array element values mainly include the reset next current prev end functions.
Reset (PHP 3,
In php programs, regular expressions are generally used to verify email addresses, IP addresses, and URLs. In fact, some Built-in validation rules are provided in php. The following example describes how to use the built-in filter function of php to
This article mainly shares the knowledge of PHP Data type conversion.
PHP Data type conversion is a forced conversion. The PHP data types that can be converted include:
(Int), (integer): Convert to integer(Float), (double), (real): Convert to
PHP has some functions for sorting arrays, and this document lists them.The main differences are:
Some functions are sorted based on the keys of the array, while others are sorted based on values:$array [' key '] = ' value ';.
1.__Get/__set call these two functions when the class has no properties to access$obj = NewImooc\object ();$obj -title= "Hello";Echo$obj -title;namespaceImooc;classObject{ protected$array= Array(); function__set ($key, $value) {Var_dump
I. PHP5.31. Support namespaces2. Add goto statement Public function teststop () { goto aaa; 1 ; AAA: 2; }3. Added two magic methods __callstatic () is enabled when a static method is called that does not exist
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.