This article describes the PHP common string output method. Share to everyone for reference, as follows: 1. echo Usage: Can be directly output with Echo or echo () output, no return value $string= " bold display text "; Echo $string;//echo "";//echo
Born under the red flag long in the spring breeze, long soak in the crab society inside so over time there are some of the way of thinking of the crab, just for a while to do one. NET Web site access statistics system, by the way, how to "monitor"
There are a lot of string functions in PHP Oh, it is said that PHP is composed of functions, which allows developers to speed up the development of the site Oh, well, crap don't say much. Let's take a look at my friends for free PHP string function
Analysis of the 10 most common mistakes in PHP programming 10
Currently learning PHP a lot of friends, in peacetime daily program development project always encounter a variety of problems, this experience will introduce PHP development in the 10
1, the string connectorHalf-width symbol "." is a string connector that connects two or more two strings to a string. For example:$name = "cloud-dwelling Community network:";$url = WWW.51EBK;Echo $name. $url. ". com";?>The results of the operation
Error 1:foreach left hanging pointer after loop
In a foreach loop, if we need to change the elements of an iteration or to improve efficiency, applying a reference is a good idea:
$arr = Array (1, 2, 3, 4);foreach ($arr as & $value) {$value =
16. The HEBREVC () function converts a right-to-left stream of Hebrew text to a left-to-right stream. It also converts the new line (\ n) to . Only ASCII characters between 224 and 251, as well as punctuation marks, are affected.Syntax: Hebrev
Server-side scripting technology is a very useful thing, combining it with client script technology to create a very powerful page. It seems like a long time ago, which version (appears to be the WWW edition) discussed ASP to the point of full swing,
PHP Learning Series (1)--String processing function (4), PHP function
16. The HEBREVC () function converts a right-to-left stream of Hebrew text to a left-to-right stream. It will also convert the new line (\ n) to。 Only ASCII characters between 224
Chinese string manipulation function
The string manipulation functions in PHP3.0 are more important, as follows:
(1) echo,print,printf,sprintf
Used for output strings. If a variable name is substituted in the string, it is replaced with its value.
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.