Purpleonyx schrieb:
Greetings all, I ran into a problem today and was
hoping someone could provide an answer.
I am fetching a web page, and attempting to parse
certain variables from it. I've done this plenty of
times in the past with no problem. The only
difference this time is the file that I
Here is one of doing this:
if(strrpos($v_tel_filter,' ') 0 || strspn($v_tel_filter,
0123456789-) != strlen($v_tel_filter)){
echo '$v_tel_filter' Telephone Number Contains words;
} else {
}
-Original Message-
From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED]
Sent:
-Original Message-
From: Ralph [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 8:20 AM
To: Miranda, Joel Louie M; [EMAIL PROTECTED]
Subject: RE: [PHP] Eregi filtering..
Here is one of doing this:
if(strrpos($v_tel_filter,' ') 0 || strspn($v_tel_filter,
0123456789-) != strlen
elseif (eregi(a-ZA-9, $v_tel_filter)) {
echo '$v_tel_filter' Telephone Number Contains words;
} else {
im looking how to verify numbers alone and dash - can that be possible? I
have tried using a-ZA-9 but did not work.
/^[\-\d]+$/ should match a string of just digits and dashes.
4 matches
Mail list logo