Article:
 |
|
Five Habits for Successful Regular Expressions
|
| Subject: |
|
PHP Code Flaw |
| Date: |
|
2003-08-22 10:05:24 |
| From: |
|
anonymous2
|
|
|
|
In your PHP example, this will not work:
$tests = ( "314-555-4000",
"800-555-4400",
"(314)555-4000",
"314.555.4000",
"555-4000",
"aasdklfjklas",
"1234-123-12345"
);
You must change it to:
$tests = array( "314-555-4000",
"800-555-4400",
"(314)555-4000",
"314.555.4000",
"555-4000",
"aasdklfjklas",
"1234-123-12345"
);
|
Showing messages 1 through 1 of 1.
-
PHP Code Flaw
2003-08-22 10:25:10
tonystubblebine |
[View]