strpos("|", $str) code example
Example 1: php find if substring is in string
$result = strpos("haystack", "needle");
if ($result != false)
{
// text found
}
Example 2: strpos php
if(strpos('abc', 'a') !== false) { // ...
$result = strpos("haystack", "needle");
if ($result != false)
{
// text found
}
if(strpos('abc', 'a') !== false) { // ...