Re: Singular Searching
Posted by:
Neil Young
Date: August 09, 2005 08:51AM
For any one that is interested - solved this problem using the strrchar and substr_replace methods. The code can be found below:
$searchString = $_POST['searchString'];
// take into account case sensitivity
$endLetterLC = strrchr($searchString, 's');
$endLetterUC = strrchr($searchString, 'S');
if ($endLetterLC == "s" || $endLetterUC== "S")
{
$searchString = substr_replace($searchString, "", -1);
}
Subject
Written By
Posted
Re: Singular Searching
August 09, 2005 08:51AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.