Example 1: Write a program that can receive an integer that prints half of the pyramid.
For ($i =0 $i
for ($t =0; $t
Echo ' * ';
}
echo ' ';
}
?>
The effect of the following figure:
Example 2: Print a solid pyramid.
Analysis:
Effect Chart:
Remember before I saw a page number way of paging effect, the number of pages more folding lines continue to show up to more than 60 pages, hehe! A little influence beautiful!
So I wrote a page-numbering program that automatically
Objective:
Fckeidtor is a foreign multi-language editor, you can make a simple change to its profile to support the current common web development language applications, I will talk about the latest version of the FCKeditor 2.4.2 in the specific
Cclipwidget provides a feature like recording "Macros," where the content between Cclipwidget Init and run can be stored in a controller clip variable, and then replayed back to any other location.
The basic uses of the Cclipwidget package are
PHP calls the stored procedure returns the result set, solves the can ' t return a results set in the given the method needing the PHP to call the stored procedure, returns a result set, discovers very difficult, looked for a long time, finally
Single-piece mode is a design pattern that we often use in development, using PHP5 object-oriented features, we can easily build the application of single piece mode, the following is a single piece mode in PHP several implementation methods:
class
There is a fixed framework for doing the project, so we don't need to understand the operation function that connects the database. But the interview is often asked, the author recently reviewed the training period of the six-pulse sword hope to be
Php custom truncation of Chinese strings-utf8 version,
Note: There are a lot of code for this problem on the Internet, but many of them are copied and pasted without practice, and the code has logic problems. The following code is compiled by myself.
Browsersync introduction and use, browsersyncandIntroduction
Time-saving browser synchronization test tool. Browsersync allows the browser to respond to your file changes (html, js, css, sass, less, etc.) in real time and automatically refresh the
Switch the php version from brew to macbrew and from macbrew to php.The first step is to install brew Brew, which is a package management tool under Mac. You can install the development tool conveniently by hosting Mac-compatible compilation
Based on php (Thinkphp) + jquery, multiple ajax selections and invert selections are implemented. If you do not select to delete data, you can learn from thinkphpjquery.
Jquery multiple source code sourcesMaterial fire http://www.sucaihuo.com/
(If
For some experiments on curl/curl_multi, curlcurl_multi
I haven't written it for a few days. I am mainly engaged in my own learning process. paste some code of curl/curl_multi_exec and mark it.
$ handler) {echo $ url. "========= ". $ handler. "\ r \
Example of converting XML and array using php, and phpxml Array
This example describes how php converts XML and arrays. We will share this with you for your reference. The details are as follows:
Convert arrays to xml:
function arrtoxml($arr,$dom=0,$
Example of accessing Redis with a password using PHP, and example of redis
1. First, set the Redis password to provide remote login
Open the redis. conf configuration file, find requirepass, and modify it as follows:
requirepass
Basic php Functions
The following is an example:
"; // echo rand (); // echo time (); // timestamp // 2017-02-10 08: 46: 12date_default_timezone_set ("Asia/Shanghai"); // echo date ("Y-m-d h: I: s "); // The current time is converted by default. //
PHP hexadecimal conversion instance analysis (, 16, 36, 64 hexadecimal to 10 hexadecimal conversion), hexadecimal instance analysis
This article describes the PHP hexadecimal conversion. We will share this with you for your reference. The details
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