Make Logical judgments. Currently
Divisibleby null even odd sameas constant defined empty
DivisiblebyCheck whether it can be divisible
{% If loop. index is divisibleby (3) %}...{% Endif %}{% If loop. index is divisibleby (3) %}...{% Endif
When I was learning PHP, I often encountered various error prompts. Today I am very familiar with the error prompts and explanations. Now I want to learn from them. Haha .....1. Notice: Undefined variable: variable name inNote: An unspecified
I downloaded ThinkPHP code a few days ago. I don't think CodeIgniter (CI) is so good. Maybe it's because I downloaded the latest RC version! There are not all Examples in it. Open several tips 404, because you are concerned about database operation
In mysql: UNIX_TIMESTAMP (), UNIX_TIMESTAMP (date)If no parameter is called, a Unix timestamp ('2017-01-01 00:00:00 'seconds after GMT) is returned as an unsigned integer. If you use date to call UNIX_TIMESTAMP (), it will return the parameter value
/*** Paging class* 2011/8/31* Kcj**/Class Page {Private $ total; // query the total data recordsPrivate $ page; // current page// Private $ pagesize; // number of entries displayed on each pagePrivate $ pagenum; // total number of pagesPrivate $ num;
// Time Conversion FunctionFunction tranTime ($ time ){$ Rtime = date ("m-d H: I", $ time );$ Htime = date ("H: I", $ time );$ Time = time ()-$ time;If ($ time $ Str = 'gang ';}Elseif ($ time $ Min = floor ($ time/60 );$ Str = $ min. 'minute ago
In Codeigniter, there is actually a good way to handle controller layers that are easy to ignore,This is remap. Here is a brief introduction.In fact, in the ci url control mode representation, for example:Example.com/index.php/blog/comments/
In this
In the preceding example.
During the past two days, many of you have asked questions on the page. I will give you a detailed explanation of the Application of paging technology:
We often see beautiful pages in some web applications,
Click the next
Today, the project is upgraded to php5.4, gbk encoding, and the string converted by htmlspecialchars is empty. Why?
Solve the problem and add the encoding. htmlspecialchars is used in so many places. It is really troublesome to change it. It seems
Client (PHP ):
Send. php
[Php]$ Fp = fsockopen ("maid", 1024, $ errno, $ errstr, 10 ); $ Filename = '22_07_23.zip '; // file to be sent Fwrite ($ fp, $ filename. "\ r \ n"); // write the file name in java. readLine () .. the first line is the file
$ Str = 'sdfasfs12333ddd12233 ';
Preg_match ('/\ d/si', $ str, $ arr); // you can specify three consecutive numbers.
Echo ' ';
Print_r ($ arr );
Echo ' ';
1. This function only matches the first value.
2. $ Arr [0] stores the result.
Create several tables ~ For a brief description, the tbl_post blog table tbl_comment comment table and the tbl_user table tbl_tag label table can directly run the following SQL statement.
Create database /*! 32312 if not exists */'yii '/*! 40100
In many cases, PHP files may encounter some very difficult-to-troubleshoot errors, such as output of large white pages. It is possible that the PHP error level shields some non-fatal errors, resulting in no error prompt. Therefore, understanding and
When developing a website using php, using the object-oriented method can indeed improve the code reuse rate and reduce code redundancy. What is more friendly to beginners is that most of the class libraries required by PHP development websites have
During Development today, we need to import the data in the excel file to the relevant configuration file. I first export the excel file to a csv file according to the method used in the past, then, use the fgetcsv function to read the file content
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