Top 10 of PHP learning: foreach
PHP 4 (not PHP 3) includes the foreach structure, which is similar to Perl and other languages. This is just a simple way to traverse arrays. Foreach can only be used for arrays. an error occurs when you try to use it
{Php5 Exception} Exception: Exception handling is used to change the normal process of the script when a specified error (Exception) occurs.
When an exception is triggered, it usually occurs:The current code status is saved. code execution is
PHP three-tier structure (top )?? Simple three-tier structure
Let's take a simple message board code as an example. let's take a look at the simplest three-layer structure code, as shown in code 1:
// Code 1// Appearance layer classClass
PHP environment configuration 1. PHP installation and configuration
Rename the decompressed php5.2.1-Win32 folder to php5. And copy it to the C directory. The installation path is c: \ php5.
1. find the php under the php directory. ini-dist or
VimXDebug debug PHPphp remote debugging xdebug configuration
Xdebug installation
Address: http://xiaobin.net/201007/using-vim-and-xdebug-to-debug-php-code/
In principle, this debugging method relies mainly on the Vim plug-in "remote PHP
PHP learning (6) Includes code and embedded PHP including code in PHP. the code contains four functions, including include_once require require_once. The main difference between include and require is that if the file does not exist, The require
[Php] How does php determine whether ajax is submitted? jquery ajax is used here.
Page:
$. Ajax ({Type: 'post ',Url: 'http: // www.yourwebsite.com ',BeforeSend: function (XMLHttpRequest ){XMLHttpRequest. setRequestHeader ("request_type",
CentOS Updated php (PHP5.2 + isrequired problem) after CentOS5.5 installed the php environment using yum, it was found that it was php4.x. The latest phpMyAdmin prompts "PHP 5.2 + is required ", because php version is too low and PHP5.2 or above is
PHP build WAP page WAP (Wireless communication protocol) is an open global standard for communication between digital mobile phones, personal handheld devices (PDAs), and computers. Static WAP pages cannot meet personalized service requests in many
PHP6: basic PHP Data types This chapter describes the basic PHP Data types.
I believe we are familiar with any language in C/C ++, C #, or Java. This chapter uses C # as a comparison language.
OK. if you want to learn PHP, what are your first
PHP7: Definitions of PHP variables and constants This chapter describes the definitions of variables.
If you define variables and constants, how many aspects will you pay attention? You may think:
How to Define variables? what is the difference
II. PHP Data types (php learning) 1. basic PHP syntax and data types:
(1) basic PHP syntax:
1. hybrid compilation of htm and php
2. a statement ends with a semicolon)
(2) PHP Data operation type
Four scalar types:
Boolean is
[ZT] managing php-cgi processes with PHP-FPM (PHPFastCGIProcessManager) Overview: This is [ZT] using PHP-FPM (PHP FastCGI Process Manager) to manage the php-cgi process. This section describes the php-related knowledge, skills, experience, and some
The seventh release of PHP & MORE focuses on the acceleration and optimization of PHP, MySQL, and Apache.
The directory is as follows:PHP & Memcached (Nio) use memcached to implement automatic object caching (cid73) XCache: Accelerate Your PHP
Configure Apache + PHP + Mysql in Win7 environment 1. install and configure APACHE (install Apache to D: \ phpapache \ Apache2.2)
1. it is installed by default during installation. for Network Domain and Server Name, enter my computer Name and your
PHP connection to Mysql instance
connect. php
/* Use PHP in the PHP Manual to connect to the Mysql instance */
/* Select database for connection */
$ Link = mysql_connect ("mysql_host", "mysql_user", "mysql_password") or die ("cocould
Php full example file directory:
-- Index. php
-- Php
-- Data_info.php
Index. php
The PHP file where the require_once class is located
SetName ("username"); $ oneData-> setPassword ("password"); echo $ oneData-> getName (); echo $
Download the PHP environment setup tool:
Apache: http://httpd.apache.org/download.cgi
PHP: http://windows.php.net/download/
MYSQL: http://dev.mysql.com/downloads/
The main point of setting up the PHP environment is to modify the configuration
PHP regular expressions are used to extract specified content from a webpage. Php regular expression
PHP regular expressions are used to extract specified content from a webpage.
Source code:
E7%9B%92%E4%BD%BF%E7%94%A8%E6on%95%99%E7%A8%8B.mp4"
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