In this paper, an instance of the Codeigniter detection form post data. Share with you for your reference. As follows:
$ Name = $ this-> input-> post (name ');
$ Email = $ this-> input-> post (email ');
$ Subj ect = $ this-> input-> post
Overview
Starting with PHP5, we can use type hints to specify the type of arguments that the function receives when defining the function. If the type of the parameter is specified when the function is defined, then when we call the function, if
Before the web development note wrote a PHP generated thumbnail function, although that function can generate thumbnails, but there is a certain flaw in the production of PNG thumbnail, the background is black, and today wrote a function to make up
1. __construct () and __destruct ()
Invoked when an instance is created/destroyed, you can pass 0 or more parameters.
Class A
{
function A ()
{
echo "build A";
}
function __destruct ()
{
echo "destroy A";
}
}
$obj =
There are also the following questions:
How did the include_path work?
What if there are multiple include_path order?
Under what circumstances does include_path not work?
Today, I will introduce the problem in a comprehensive way, starting with
These questions are seen in the German question, it is very interesting, bring to share the trap, see you will not fall into it.
First question.
Copy Code code as follows:
$arr = Array (0=>1, "AA" =>2, 3, 4);
foreach ($arr as $
In the PHP development process, if you want to introduce a class from the outside, you will typically use the include and require methods to include the file that defines this class, but this may make the new script that references the file There is
Converting PHP's execution page to HTML is one of the so-called PHP static methods.
Other methods include template substitution, Opcache, and so on.
The role of Static:
Improve the response speed of the website, reduce the load of the server;SEO
Today, when I was revising my thesis online, I encountered the Iconv function. Learn a bit
Header (' Content-type:application/vnd.ms-excel;charset=utf-8 ');
$name =iconv (' utf-8 ', ' gb2312 ', $data [' Year ']. Year, $data [' period ']. '
You can send header information through the header function in PHP, and you can set the Content-type of the file, and then sort out the content-type values for some common file types.
Date 2015-06-22//Definition Code header ('
Last Updated: 2011/04/02
1. Use the list to achieve a specific segment value after getting explode:
List (, $mid) = explode ('; ', $string);
2. Use NULL = = to replace Is_null:
Is_null and NULL = = are exactly the same effect, but save a function
We have developed a system that only the company's customer service personnel can use-a limited number of customer service personnel. This is the limited number of customer service staff a few days ago suddenly put forward such a problem: we every
Copy Code code as follows:
?
/*
PHP generates text PNG pictures, you can call the function by using the following methods:
Http://www.yourdomian.com/text_png.php3?msg=helloworld+class&rot=15&size=48&font=fonts/ARIAL. TTF
*/
Header
Re-understanding Unicode and UTF8 encoding
Until today, to be exact, I just realized that UTF-8 encoding and Unicode coding are not the same, and that there is a difference between embarrassingThere is a certain connection between them, to see the
Using the object-oriented knowledge of PHP to design a graphics calculator, but also the use of abstract knowledge, the calculator can calculate the circumference and area of the triangle, as well as the circumference and area of the rectangle. This
Today I learned about arrays, which is one of the more important ways to use PHP data. PHP's Array function is numerous, below is my study summary, takes this to remember, facilitates later ...
one, array definition:The definition of an array is
Today, when you put a set of programs on another server, you find that the login verification code in the background, regardless of whether the input is correct or not, always shows:
Validation code entered incorrectly
Then it started to debug.
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