note 9453 added to strcmp

From: Date: Fri, 03 Nov 2000 21:23:02 +0000
Subject: note 9453 added to strcmp
Groups: php.notes 
Request: Send a blank email to php-notes+get-7352@lists.php.net to get a copy of this message
Regarding bizarre return values from str*cmp(), I was having similar troubles until I realized that I was attempting to compare a string with HTML formatting with its plain-text equivilant. The formatted string was an <OPTION> value, so the HTML was rendered without the <b> and <i> formatting I was using. Consequently the formatted and unformatted strings were rendered identically in the browser. D'oh! http://www.php.net/manual/function.strcmp.php

« previous php.notes (#7352) next »