Learning--php life cycle of PHP kernel
Start of everything: SAPI interface
SAPI (Server application programming Interface) refers to a specific application of PHP programming interface, just like a PC, no matter what operating system installed, as
The life cycle of PHP
In a common webserver environment, you cannot start the PHP interpreter directly; This is typically initiated by Apache or other webserver, which loads PHP processing scripts that need to be processed (requested. PHP
Start of everything: SAPI interfaceSAPI (Server application programming Interface) refers to a specific application of PHP programming interface, just like a PC, no matter what operating system installed, as long as the interface specification of
Ask the PHP array to cycle through the Smarty template page.
$row 2=explode (' ___ ', $conne->getrowsarray ($sql));
$smarty->assign (Array ("Array3" + $row, "array4" = $row 2));
The array is defined here
{%foreach item=i from= $array 3%}
{%foreach
Ask the PHP array to cycle through the Smarty template page.
$row 2=explode (' ___ ', $conne->getrowsarray ($sql));
$smarty->assign (Array ("Array3" + $row, "array4" = $row 2));
The array is defined here
{%foreach item=i from= $array 3%}
{%foreach
A What is an array
An array is a set of elements that have some common characteristics, including similarity and type.
Each element is distinguished by a special identifier, called key, and each key has a value
1. Two ways to create an array:
1.1
In this paper, an instance of the codeigniter in the view through the cycle show an array of data. Share with you for your reference. As follows:
Controller are as follows:
load-> View (index, '$ data );
}
}
?>
Index view is as follows:
Deeply understand the execution cycle analysis of PHP principles, and deeply understand php
This article describes the execution cycle of PHP principles. We will share this with you for your reference. The details are as follows:
The execution cycle
Start of everything: SAPI interfaceSAPI (Server application programming Interface) refers to a specific application of PHP programming interface, just like a PC, no matter what operating system installed, as long as the interface specification 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.