I try to cut a text after the occurence of a specified character, in this case:
“
The text example is:
...text?“ Text,
The strpos()
command requires 3 parameters
1) The Variable
2) The start column and
3) the numbers of characters
If you just use substr($title,$pos2)
you get the text from the pos2 column to the end of the string.
RESULT
before“
Also test for not equal false
as strpos returns FALSE if it does not find the character you are searching for
After all the discussion below I ran it on my local Apache/PHP
Ello Wurld
Produces: