Definition and usage
The strtr () function converts special characters in a string.
Syntax
Strtr (string, from, to) or
Strtr (string, array) parameter description
String1 is required. Specifies the string to be converted.
From is required
CopyCodeThe Code is as follows: Function getimageinfo (IMG) {// IMG is the absolute path of the image file
Img_info = getimagesize (IMG );
Switch (img_info [2]) {
Case 1:
Imgtype = "GIF ";
Break;
Case 2:
Imgtype = "jpg ";
Break;
Case 3:
Before you start, let's mention three functions: "ob_start (), ob_end_clean (), ob_get_contents ()"
Ob_start (): it is used to open the buffer, that is, to cache the content of the static file you need to generate here;
Ob_get_contents (): Read
Of course, you must first enable the reload_assist_ims on Function in CDN. in this way, no-cache is not used. this will convert no-cache to if-modified-since. so we write
ProgramIt is better to control if-modified-since. note: In the cache system
Array1. The subscript of the array is an integer value or a string type.The key of the eg1. index array is ______, and the key of the associated array is ______.2. When the string is used as an index, quotation marks should be added. Constants or
Demo
Code As follows:
Copy code The Code is as follows: Class classone {
Function callclassone (){
Print "in Class One ";
}
}
Class classonedelegator {
Private $ targets;
Function _ construct (){
$ This-> target [] = new classone ();
}
Function _
When reading Chinese or other language characters in a PHP script is garbled, first check whether your file format is saved in utf8 encoding format. If not, use ultraedit... and other tools that support utf8 conversion,It is best not to use the MS
We are writing MIS and Web applications
Program When the system involves interaction with the database, if the database has a large amount of data, it will take up a lot of resources to retrieve all the records at a time, so we often use, the
Sometimes it's hard to die for a penny,
This is true,
The same is true technically. For example, the system has been debugged for half a day,
PHP does not recognize MySQL,
In the end, I just forgot to install the php5-mysql,
Minibb is simple
Implementation of friendly URLs (recommended for vomiting blood)
Do you often see URLs of other sites like this?
Http://www.xxx.com/module/show/action/list/page/7
Or
The http://xx.com/module/show/action/show/id/8.shtml with an extension
Or
Http://xx.
In your
ProgramUse the following during initialization:
Code:
Copy codeThe Code is as follows: $ Php2html_fileurl = $ _ server ["request_uri"];
$ Php2html_urlstring = str_replace ("/", "", strrchr ($ php2html_fileurl ,"/"));
$
back to list
"Method =" Post ">
In "> Search for ">
> The second string can be anywhere in the first string
> The first string starts with the second string
> The first string ends with the second string
> Case Sensitive
If (isset ($
Copy codeThe Code is as follows: // define a function to call FCKeditor
Function call_fck ($ input_name, $ input_value, $ w = '000000', $ h = '000000 ')
{
Include_once 'fckeditor/fckeditor. php ';
$ Fcked = new FCKeditor ($ input_name );
$
PHP is used for implementation. If you cannot understand it, please leave a message... I believe the principles are similar ..
Why is PHP used as an example language?
There are two other factors: 1. PHP syntax is easy to understand, and people with
Method 1. note that there is a pre-defined image record set rsmpic that needs to be repeated horizontally. Please change it to your record set name based on your situation. neatly place horizontally Duplicated content in a table
$ NumberColumns = '3
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