php string containts code example
Example 1: contains php
if (strpos($a, 'are') !== false) {
echo 'true';
}
Example 2: string contains php
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
if (strpos($a, 'are') !== false) {
echo 'true';
}
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}