preg_split() Flags : preg_split « String « PHP

Home
PHP
1.Chart
2.Class
3.Components
4.Cookie Session
5.Data Structure
6.Data Type
7.Date
8.Design Patterns
9.Development
10.DNS
11.Email
12.File Directory
13.Form
14.Functions
15.Graphics Image
16.HTML
17.Language Basics
18.Login Authentication
19.Math
20.MySQL Database
21.Network
22.Operator
23.PDF
24.Reflection
25.Statement
26.String
27.Utility Function
28.Web Services SOAP WSDL
29.XML
PHP » String » preg_split 
preg_split() Flags
 
Reference Number               Value
 
PREG_SPLIT_NO_EMPTY            Causes empty substrings to be discarded.
 
PREG_SPLIT_DELIM_CAPTURE       Causes any references inside pattern to be captured and returned as part of the function's output.
 
PREG_SPLIT_OFFSET_CAPTURE      Causes the position of each substring to be returned as part of the function's output (similar to PREG_OFFSET_CAPTURE in preg_match()).
  
  
Related examples in the same category
1.Calculating average word length
2.preg_split() function operates like split(), except that regular expressions are accepted as input parameters for pattern.
3.preg_split.php
4.Discarding empty elements with preg_split()
5.How preg_split() can be used:
6.Limiting the number of returned elements with preg_split()
7.Parsing a date with preg_split()
8.Using preg_split()
9.Using preg_split() to Break Up Strings
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.