One. Comment Methods for PHP
1.//(single-line comment) 2./**/(multiline comment) 3.# (more for Unix SHELL) two. Embedding method
Can be specified on its own, the general situation is
Recommended use
three. Reference file
Include and
The PHP class code often sees the "::" operator, which is scoped to the scope operator, and is represented by a double-colon "::", which is used to pin the levels of different scopes in the class. The left side is the member of the access scope to
. Overview:
Alternative PHP cache (APC) is a free, publicly available, optimized code cache for PHP. It is used to provide free, open and robust architecture to cache and optimize PHP's intermediate code.
Note:
1. Under Windows, APC needs to have
PHP Output current date time and week
$week = Array (day, one, two, three, four, five, vi);
echo Date (Y year M D Day). Week. $week [Date (w)];
Results for Saturday, April 16, 2011
?>
http://www.bkjia.com/PHPjc/478838.html www.bkjia.com
An array is a set of data that organizes a series of data to form an operational whole. Each entity of an array contains two items: A key and a value.
first, what is an array
An array is a set of data that organizes a series of data to form an
There is only recently time to deal with this and apply this assumption to real-world applications. Here are two ways to explain how to develop and publish.
Example: Explain the java+php development model, take menu management as an
Interface Arrayaccess
Boolean offsetexists ($index)
Mixed Offsetget ($index)
void Offsetset ($index, $newvalue)
void Offsetunset ($index)
The following example shows how to use this interface, but the example is not complete, but it can be
1, to many code files said, especially contains a lot of include files (include or require). They need to spend more time and resolution and produce intermediate code.
2, even if the PHP code file does not change, the implementation process will be
After PHP5.0, PHP object-oriented commission more methods, make PHP more powerful!!
Some of the functions in PHP called Magic Methods, introduced here: in fact, in the general application, we need to use them!!
1.__construct () When an object is
Php.net recently updated the PHP documentation, the more useful is the new Pman tool. Pman is a command-line gadget that makes it easy to see the local Help documentation for PHP functions, but does not include php.net comment data. The simple trial
2010 should be remembered, because SQL will die this year. This year the relational database is dying, and this year developers find that they don't need a long hard time constructing columns or tables to hold data.
2010 will be the starting year
Reading and writing Extensible Markup Language (XML) in PHP may seem a bit scary. In fact, XML and all of its related technologies can be scary, but reading and writing XML in PHP is not necessarily a scary task. First, you need to learn a little
Heredoc technology, usually not detailed in regular PHP documentation and technical books, just mentions that this is a Perl-style string output technique. But now some of the forum procedures, and some of the article system, are clever use of
PHP's Isset () function is commonly used to detect whether a variable is set
Format: bool Isset (mixed var [, mixed Var [, ...])
Function: Detect whether the variable is set
return value:
Returns FALSE if the variable does not exist
Returns FALSE if
Development encountered a refresh page random access to the article function, the PHP function in the Array_rand () function, Array_rand (array,number), there are two parameters, where the array parameter is to represent what you want to get a
first, small order
HTML is easy to learn and generic, the general PHP program is embedded in the HTML language implemented. But with the web becoming more and more widely used, the weakness of HTML is becoming more and more obvious. The advent
PHP Compressed file Zip example
1. Please download my prepared zip.php tool class, download and unzip, put the files inside the corresponding directory, I was placed in the virtual directory in the Include folder.
2. Add the following code to your
1. CakePHP Master/slave
*) Add default (slave as for query) setting in database.php, and master for saving
*) Define a new replicate behavior
Class Replicationbehavior extends Modelbehavior { Public Function BeforeSave ($Model)
1. Determine if there is injection, plus, and 1=1;and 1=2
2. Determine version and Ord (Mid (Version (), plus)) >51/* Return normal description is 4.0 or higher, you can use union query
3. Use ORDER by storm field, add order by 10/* After URL if
Recently, using the Zendframework framework to do projects, to take the data from the database to generate XML documents. Here's a note about the process:
XML file:
1.
2.
3.
4.
5.
6.
7.
8.
9.
1. Build
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