Hello,
I have a string coming from the database, and I want to verify if the string has a double quotes (") at the first position of the string and the last position of the string. I tried many things, but nothing works like this!
$sv['SEARCH_TEXT'] is a field from the database and has doubles quotes but return false when should be true !
if(stristr($sv['SEARCH_TEXT'], "\"") === TRUE) {
echo '"quotes" found in string';
}
Thanks for any help!
I have a string coming from the database, and I want to verify if the string has a double quotes (") at the first position of the string and the last position of the string. I tried many things, but nothing works like this!
$sv['SEARCH_TEXT'] is a field from the database and has doubles quotes but return false when should be true !
if(stristr($sv['SEARCH_TEXT'], "\"") === TRUE) {
echo '"quotes" found in string';
}
Thanks for any help!