Answers for "string in string"

PHP
0

strpos

$mystr = 'abc';
$findMe   = 'a';
$position = strpos($mystr, $findMe);
Posted by: Guest on October-21-2020
0

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
Posted by: Guest on February-17-2021

Browse Popular Code Answers by Language