string in string code example
Example 1: strpos
$mystr = 'abc';
$findMe = 'a';
$position = strpos($mystr, $findMe);
Example 2: how to use \ in a string
var x = "The character \\ is called backslash.";
Code Result
\b Backspace
\f Form Feed
\n New Line
\r Carriage Return
\t Horizontal Tabulator
\v Vertical Tabulator