Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
Parsing a date with preg_split() : preg_split « String « PHP
PHP
String
preg_split
Parsing a date with preg_split()
<?php $ar = preg_split(
'/[- :]/'
,$date); var_dump($ar); ?>
Related examples in the same category
1.
Calculating average word length
2.
preg_split() Flags
3.
preg_split() function operates like split(), except that regular expressions are accepted as input parameters for pattern.
4.
preg_split.php
5.
Discarding empty elements with preg_split()
6.
How preg_split() can be used:
7.
Limiting the number of returned elements with preg_split()
8.
Using preg_split()
9.
Using preg_split() to Break Up Strings