Learning Essentials:
1.LIMIT usage
2. Various parameters
3. Hyperlink invocation
First: First set up the digital paging module in the file; my file is (blog.php)
// Paging Module $_page $_get [' page ']; $_pagesize = ten; $_pagenum =
: PHP self-study no00007 data type string type definition: $ I content: $ izws; * Note: the end line of the above definition cannot be indented or annotated, there cannot be spaces (this is very heavy, otherwise the code will report an error )*? &
-------Add--------When defining constants, it is recommended to determine whether a constant name is defined, to be judged by defined (), and to return a Boolean typeif (!defined ("POEM")) {//Not definedDefine ("POEM", "Du Fu");}---------------------
Come to the conclusion today.
, when accessing properties declared as const and static in the inner method of a class, use Self:: $name form. Note that the Const attribute's declaration format, const PI=3.14, is not const $PI =3.14
Copy the Code
' Echo ' does not convert output original variable '; echo $num; Echo '' Echo ' uses the function Settype () to convert the variable type '; Settype ($num, ' Integer ');//here integer to single quotation mark or error echo $num; Echo ''; Echo '
The pagination effects of numbers and text in PHP self-training projects are implemented in functions,
/***** @ Param $ _ SQL * @ param $ _ size */function _ page ($ _ SQL, $ _ size) {// obtain all the variables in the Table. Externally, you can
Ab-c 100-n 10000 h.com/bad.phpab-c 100-n 10000 h.com/good.php using PHP built-in function performance and self-writing code run 21 times times faster Php$array1=array (); $array 2=array (); for ($i =0; $i View Code php$array1= $array 2=range (1000,20
I hope you have a little early detour.Those who come out of the training class despise our self-taught people.We self-study the technology to prove. We self-study technology is not dirty, we self-study technology is their hard work with sweat in
PHP scenario, you need to convert the array to a JSON string, you need to use PHP's own json_encode function;But when the array contains Chinese strings, the result of the transfer is the following:1PHP2 3 $TMPARR=Array(4' Name ' = ' trousers ',5
Php self-encapsulated SQL Chinese like full or query statements jump to [1] [full screen Preview]
Function createlike ($ a, $ B, $ c = '') {$ d =''; $ e = 'or'; $ f = count ($ ); for ($ I = 0; $ I
Today to write something small, suddenly thought to use the template engine. On the "Handy" wrote a, sent up for beginners to learn. Took so long PHP, think also really feeling, that year the thing that studied for a few days now one or two hours to
PHP Self-study catalog
DBXYD-TF477-46YM4-W74MH-6YDQ OfficePHP Instructional video PHP video PHP100 video complete PHP learning videoPHP100 website about PHP tutorial to 102 is finished, after 103 is jquery, the following is 1 to 102 of all the
About the title: PHP + BAT making PHP self-resolution batch processing is a BAT file that contains dos bat batch processing code and php cli code. Because the suffix is BAT, I click BAT on the WIndows system to run it.
Title: php bat
This article describes the PHP self-destruct program. Share to everyone for your reference. The implementation method is as follows:
// +----------------------------------------------------------------------
// | kill!!
This article for everyone to share is a PHP self-written MySQL operation class, interested friends can see
Make a note here.
Several knowledge points of the PHP class
self::$ static Property name
$this, General property name or method name
Four
Building infrastructureCreate under Project folder (custom)(1) Core catalogue: WQ(2) Template catalog: Moban(3) Compile directory: Bianyi(4) Create profile: config.ini.phpPHP//get the directory where the files are located$Gen=dirname(__file__);//set
In order to own the PHP system in-depth mastery, I through personal experience, as well as search online expert experience, summed up a PHP self-learning route planning, including actual combat drills, learning suggestions, master Advanced, FAQs and
// +----------------------------------------------------------------------// | kill!!//| The program will erase all files and directories in this directory//| If you set up database information, try to delete all database and table data (provided
PHP self-made calendarI. computing data 1. A new Calendar Class 2. Initializing data in the two drop-down boxes, year and month 3. initialize the year and month to be searched. 4. Calculate the data information of each day in the calendar, including
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.