[suspicious - maybe spam] detecting a leading hyphen from post data
| From: | Larry Brown | Date: | Sun, 20 Mar 2005 17:49:00 +0000 |
| Subject: | [suspicious - maybe spam] detecting a leading hyphen from post data | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211135@lists.php.net to get a copy of this message | ||
I know this is pretty petty, but it is a sunday and I'm missing this for
some reason...
I'm trying to detect a leading hyphen in an element of an array. I've
been using strpos to find strings and if getting 1 as the result, I know
it was at the beginning of the string. However, "-", "\-", nor "/^-/"
give me a hit? Could someone throw me a bone here?
Larry