I am trying to find out if there are two strings in PHP, one that will delelete everything in a string after so many characters that you define yourself. Here is an example if your are lost
$var = "Hello World";
$var = function($var, 5);
echo $var;
and $var would output "Hello". I am also looking for a function that check to see if there is a certain character or characters in a string.
I have already looked at PHP.net and I could not find anything. Any helps is appreciated.