PHP learning notes-string operations
1. remove spaces at the beginning and end of the string and special characters
The trim () function is used to remove the start and end characters.
Syntax string trim (string str [, string charlist]), where
Php string replacement, segmentation and connection methods, php string replacement and segmentation. Php string replacement, segmentation, and connection methods. php string replacement and segmentation this article describes how to replace, split,
When it comes to web search engines, most people will think of Yahoo. Indeed, Yahoo has created an internet search era. However, Yahoo's current technology for searching the web is not the company's original development. In August 2000, Yahoo
PHP learning notes array definition
1. no index method
$ List = array ("test", "test1", "test2", "test3 ");
The default index of the array defined by this method starts from 0.
2. indexed
$ List = array (1 => "test ",
2 => "test1 ",
3 =>
In java, the index of an array must be a number, and the number of arrays must be determined when the array is declared. Php is more flexible. indexes can make numbers or strings, and the number of arrays can be changed at will.
Objective: to
Document directory
Main methods and constants in the file class
Procedure
Byte output stream: outputstream
Byte input stream: inputstream
Character output stream: writer
Character input stream: Reader
File class
In the entire Io package,
The special split functions you have written are as follows:Create or replace function FN_SPLIT_STR_2 (var_str in varchar2) return varchar2/*There is a table t1 with a field named c3, which stores the location information of all stores.Now we need a
Js converts strings and arrays, and js converts each other.
This document describes how to convert strings and arrays in javascript. The following describes how to convert strings and arrays.Conversion between strings and arrays is very important,
Regular Expression BASICS (Reading Notes), regular expression Reading Notes
A regular expression (regex) is a tool.
Two basic functions of a regular expression: search and replace.
. Character (English period) can match any single character. (.
We often use split when splitting strings. Next we will learn the techniques and methods for splitting strings.
1. Use string. Split to separate a single character
String. Split Method
Namespace: SystemProgramSet: mscorlib (in mscorlib. dll)
ArticleDirectory
A). Convert the character to uppercase: strtoupper ()
B). Convert the character to lowercase: strtolower ()
C). If the first character is a letter, convert it to uppercase: ucfirst ()
D). Convert the first letter
From: http://hi.baidu.com/%CE%D2%BA%DC%B0% AE %D5%C5%B2% AE %C2%D7/blog/item/061bc251abf8a24b1138c2e3.html
You can use the custom right-click menu on the webpage to disable the default right-click menu of the browser by using JavaScript. Then,
Syntax
String can be defined in three methods
''(Single quotes)" "(double quotes)
Escape sequences can be interpreted \
The biggest feature of double quotation marks is that the variable name will be replaced by the variable value
The
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
1. Preface:
Your program will crash one day. When it crashes, we need to know where it is, why it crashes, how data is stored or lost, and so on. We can design our own Java exceptions by
PHP BasicsI. First knowledge of PHPPHP is an embedded language mixed with HTML.1. PHP tagDefault tag Short mark , You need to enable the short_open_tag option in php. ini. It is not recommended to enable the short tag and other tags.
2. keywords
There is a text file with multiple lines as follows, and the quantity is not fixed.Lif (_ amscript_cd ("www.jb51.net") {__ amscript_wc ('# closead {display: none ;}');};Lif (_ amscript_cd ("www.jb51.net") {__ amscript_wc ('# footer_win {display:
We are learning1. The format of PHP function explode is as follows:
Array explode (string separator, string, [int limit]);
2. The separator in the parameter is the separator, the string is the string to be split, and the limit is the maximum number
1. Related to mysql
Mysql_connectEstablish a connection with the MySQL serverSyntax
Resource mysql_connect (string server [, string usingname [, string password [, bool new_link [, int client_flags])Eg:
Copy codeThe Code is as follows: $ DB_HOST =
Sed command details,1. Introduction
Sed is a non-interactive editor. It does not modify the file unless you use shell redirection to save the results. By default, all output rows are printed to the screen.
Sed editor processes files (or inputs) row
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.