PHP Strpos
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
Grepper
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
$output = <<<HTML
<p>Lorem ipsum dolor sit amet consectetur<p>
<a href="{$foobar}">click here</a>
HTML;
The character at index -2 is n.
Changing the character at index -3 to o gives strong.
<?php
echo strlen("Hello world!"); // outputs 12
?>