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
Menu
String Matches « String « PHP
PHP
String
String Matches
1.
String match for domain name
2.
A simple use of preg_match()
3.
String matches: ^ (begine)
4.
String match demo: /[cd][oa][gt]/
5.
String match demo: |
6.
$: anchors a pattern to the end of a line or the end of the string
7.
String matches: string start
8.
String match and if statement