// manipulating Databases//$attr = $m->select ();// Querying all data$attr = $m->select ("p001,p002,p003");//$attr = $m->find ("P001");// find specific data based on the primary key value//where query criteria can be added$attr = $m->where ("code= '
$a =array (' 3 ', ' 8 ', ' 1 ', ' 4 ', ' 11 ', ' 7 ');Print_r ($a);$len = count ($a);From small to largefor ($i =1; $i {for ($j = $len-1; $j >= $i; $j-)if ($a [$j]{//If it is from large to small, just change the judgment here to if ($b [$j]> $b [$j-1
Write your own simple MVC Framework myPHP and mvc Framework myphp
MyPHP framework
It adopts the MVC idea and applies the object-oriented method and a single project portal to implement a custom framework. (Exercises you are interested in)I. single
[PHP] PHP request Socket interface test, phpsocket
Use php to read data from the socket interface, and pass the Request Method and request parameters through php to obtain the returned results.
PHP file:
connSocket("getmaillist\r\n{'id':2}\r\n");
Development Notes: browser sharing settings, callback, and callback
Sharing with friends in the center/sharing with friends in the circle of friends should be more common, take sharing with friends in the circle of friends for example, the shared
PHP implements the array conversion to xml method, arrayxml
This example describes how to convert an array into xml in PHP. We will share this with you for your reference. The details are as follows:
" . $array . "\n"; }}else{ foreach ($array as
Php function used to verify the correctness of the ID card number. The ID card number is correct.
The easiest way to verify the ID card is to determine the length. Of course, this is very simple. If you want to make more rules, we need to verify the
No need for database online voting to investigate php code, voting to investigate php
This is an online call voting system made up of php + txt text files. The online user survey function can be completed without database support. The details are as
Yii2 Controller Ajax operation example, yii2ajax
This article describes the yii2 Controller Ajax operation method. We will share this with you for your reference. The details are as follows:
Public function actionSample () {if (Yii: $ app->
Public Account development-speech message recognition and Public Speech
1. Enable Speech Recognition (disabled by default)
2. Speech Recognition
Note: After activating voice Recognition, each time a user sends a voice to the public account, a
[Moka Notes] yii2.0 advanced edition installation configuration and rbac (I), mokarbac
1. Download the advanced application template of Yii2 at http://www.yiichina.com/download.
2. configure and install yii2test In the www directory of the server
Export an excel file in PHPExcel,
Today, the garden has just opened. Let's get a tip first. I will plant the garden slowly after the gardener qing. I hope you will visit the garden more.
Export excel files using PHPExcelFirst, let's talk about
In DEDECMS, The channelartlist label and the channelartlist labelDede: channelartlist
{Dede: channelartlist row = 6}
{dede: field name = 'typename'/}
{Dede: arclist titlelen = '42' row = '10 '}
[field: title/]
([field: pubdate function =
How to Use the require () Statement in php, phprequire
How to Use the require () Statement in phpThe require () statement includes and runs the specified file.The require () statement includes and runs the specified file. For details about how to
Create a simple and practical Thinkphp paging style (Bootstrap version) and thinkphpbootstrap
First, let's talk about the page style of ThinkPHP3.1. Although it looks simple and generous, all the page numbers are simple numbers. The gap between them
Learning frontend: thinkPHP Study Notes (1) and thinkphp Study Notes
Now the requirements for the front-end are getting higher and higher. Basically, a front-end staff needs to have a background language, so they chose the popular php. It is
What is the storage engine of MYSQL ?, Mysql storage engine
Based on personal opinions:
MySQL storage engine (composition, security, lock)
Myisam: a fast engine for data operations. It supports full-text retrieval. The file is saved in the
Create, delete, move, and copy PHP files and folders,
Create a FileUtil. php file. The content and calling method are as follows:
Another call method:
$fu = new FileUtil();$fu->copyFile('a/1/2/3', 'a/1/2/4');
The above section describes how to
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