find string value php code example
Example 1: find in php string or
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
Example 2: php find text in variable
if(strpos($comments, 'http://') !== false) {
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
if(strpos($comments, 'http://') !== false) {