1, Strip_tags
Function: Remove HTML and PHP tags.
Syntax: string strip_tags (String str);
return value: String
Description: This function can remove any HTML and PHP tags contained in the string. If the HTML and PHP tags of the string are wrong, for
An integer is a number in the collection ℤ= {..., 2,-1, 0, 1, 2, ...}.
Grammar
Integer values can be expressed in decimal, hexadecimal, octal, or binary notation, preceded by an optional symbol (-or +).
The binary representation of the integer is
The problem is encountered when using the function explode ().
There is a string that is formatted as a comma-delimited set of keywords. In PHP, you can use the function
Explode (), extract these keywords into an array to save. There may be empty
Demand from an operations colleague, the implementation of a PHP file IP filtering, not easy to directly configure the server, so you need to directly at the beginning of the PHP file IP filtering.
IP filtering rules can have the following form:
1.
Before we describe the name resolution rules, we'll look at some important definitions:
namespace name definition
Unqualified name
Identifiers that do not contain namespace separators in the name, such as Foo
Qualified name
The name contains the
The scope of a variable is the context in which it is defined (that is, its effective scope). Most PHP variables have a single range. This separate scope span also contains the files introduced by include and require. For example:
Here the
Functions are a powerful source of PHP, but many PHP functions are not fully utilized. Here, we give you a brief introduction to 10 less common, but very useful functions.
1. Sys_getloadavg ()
SYS_GETLOADAVT () can obtain the system load condition.
In a more intelligent program, PHP can obtain the client browser and operating system information, and then depending on the browser and system type, loading different pages to provide more personalized service.
Here we come together to learn how
Global issues
The use of global in PHP. Here's an example:
$name = "even";//define variable name, and initialize
function Echoname ()
{
Attempting to reference a variable outside a function
echo "MyName is". $name. " ";
}
Echoname
What is a reference?
Referencing in PHP means accessing the same variable content with a different name. This is not like the C pointer, instead, the reference is the symbol table alias. Note that in PHP, variable names and variable contents are not
First, install the Mod_proxy module while installing Apache
1. Download ApacheI downloaded the httpd-2.2.12.tar.bz2, saved to the/home/sxs/software.
2. Extracting Apache FilesGo to the/home/sxs/software folder and execute:
# TAR-XJF HTTPD-2.2.12.TAR.
The PHP Super global variable Array (super Global Array), also known as the PHP predefined array, is built into the PHP engine and does not need to be redefined by the developer. PHP will automatically put some data in the Super Global array when
Comparison operators, as implied by their names, allow two values to be compared.
Comparison operators
Example name result
$a = = $b equals TRUE if $a equals $b after the type conversion.
$a = = = $b congruent TRUE if $a equals $b, and they are
Introduction to PHP Buffering
In fact, my impression of the PHP OB series is still very vague, specifically how to play, not very understanding, usually curd, do not go into these content. As Phper is very ashamed. Search on the Internet, copy each
PHP bit arithmetic
$a & $b and (bitwise AND)
$a | $b or (bitwise OR)
$a ^ $b Xor (Bitwise XOR)
~ $a not (bitwise non)
$a
$a >> $b shift right
Detailed
$a & $b Bitwise and set the bit to 1 in both $ A and $b to 1;
Example: & 12 = 8
10 1010
12 1100
1
If the system does not have a time zone set, then the result is UTC time, which is 8 hours from the Chinese user.
23) | | $hs && ($h )) return false; if ($m > | | $m | | $s = 0 && $hour = 6 && $hour = 8 && $hour = && $hour = &&
$a = "2001-5-2";
$date = Explode ('-', $a);
Explode splits the string by '-' to put the split data into the array, which is the part of the
$date [0] = 1997, $date [1] = 3, $date [2] = 2
$timestamp = Mktime (0,0,0, $date [1], $date [2], $date [0]);
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