1. Echo Function:The output function , which is a command, cannot return a value. Echo can be followed by a number of parameters, separated by semicolons, such as:echo $myvar 1;Echo, $myvar, "bold";2. print Function:is a function that returns a
The differences and usage between PHPecho, print, printf, and sprintf functions are described in detail. 1. echo function: output function, which is a command and cannot return values. Echo can be separated with multiple parameters by semicolons,
This article mainly analyzes the differences and usage between echo, print, printf, and sprintf functions in PHP. if you need some help, please refer to them.
1. echo function:
The output function is a command and cannot return values. Echo can be
1. Echo Function:The output function , which is a command, cannot return a value. Echo can be followed by a number of parameters, separated by semicolons, such as:Echo $myvar 1 Echo ,$myvar, "bold";2. print Function:is a function that returns a
1. Echo Function:
The output function, which is a command, cannot return a value. Echo can be followed by many parameters, separated by semicolons, such as:echo $myvar 1;Echo 1,2, $myvar, "bold";
2. Print function:
is a function that can return a
This article mainly analyzes the differences and usage between echo, print, printf, and sprintf functions in PHP. If you need some help, please refer to them.
This article mainly analyzes the differences and usage between echo, print, printf, and
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
PHP string functions
Addslashes: adds a slash to the string.Bin2hex: Binary to hexadecimal.Chop: removes consecutive gaps.CHR: returns the character of the ordinal value.Chunk_split: Splits a string into segments.Convert_cyr_string: Convert the
31, the Ord () function returns the ASCII value of the first character of a string. Syntax: Ord (String)ExamplePHP Echo Ord ("H"); Echo Ord ("Hello"); >Output: 10410432. The Parse_str () function parses the query string into a variable.Syntax: Parse_
With a simple understanding of the PHP data type in the previous article, we know the string type, this article will introduce the string functions commonly used in PHP.The string is a sequence of characters, such as "Hello world!".PHP String
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.