[PHP-DEV] Bug #2563 Updated: strpos returns the same result for "not found" and "found at 1st character" From: Bug Database (php-dev <email protected>)
Date: 10/31/99

ID: 2563
Updated by: rasmus
Reported By: sascha.mantscheff <email protected>
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:

It's not ideal, but strpos() returns 0 when the char is found in the first position and an empty string when it isn't
found at all. strlen(strpos()) would give you a proper true/false, for example.

Full Bug description available at: http://bugs.php.net/?id=2563

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>