Grammar:
SUBSTR (string to intercept, start position, intercept length)
The start position starts at 0, and if you want to intercept from the first character, the start position parameter is 0.
The last parameter is optional, and if only the start
Fill 0 on the left of the PHP string, 0 on the right of the string, and a php string
Overview: A project usually uses automatic filling on the left, right, or even middle of a string of encoding to specify the length of the filled string, for
first, the number is 0.
If you want to automatically generate a number, automatically generate a number, such as the form of "d0000009", "d0000027", then you will face a problem, how to use the left 0 to make such a 8-digit code? I think of two
Php deletes spaces on the left and right sides. php deletes spaces on the left side. Php deletes spaces on the left and right sides. This document describes how to delete spaces on the left and right sides of php. Share it with you for your
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
The asp and asp functions that intercept strings are simple and easy to understand: left and right. in php, intercept string from left to right and intercept string from right to left is a function: substr.
Syntax:
Substr (string to be intercepted,
Summary of commonly used string formatting functions in PHP, php functions. Summary of common string formatting functions in PHP. the formatting of php function strings is to process strings in a specific format. Generally, the data submitted to the
The format of a string is the processing of a string into a particular format. Usually the data that the user gives to the server from the form is in the form of strings, and in order to achieve the desired output, the strings need to be processed
Php string and string operation tutorial details. Php string is a data type in php, and it plays a very important role in program development. let me introduce some php string-based knowledge and instructions for use. Php string is a data type in
Php truncates a string from the right to the left to the right. Syntax: substr (string to be truncated, start position, and truncation length) start from 0. if you want to start intercepting from the first character, the start position parameter is 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.