Du bist aber großzügig...
Nja, Preg_match arbeitet mit regex. Regex ist sehr einfach:
PHP Code:
$str = 'Test von »AimLike«';
if(preg_match('/»AimLike«/', $str) === 1)
{
echo 'YaY! Found AimLike.';
}
else
{
echo 'NaY, not there >.<';
}
Edit: Ich glaub, ich hab dich falsch verstanden, sry^^
PHP Code:
$str = 'Test von »AimLike«';
if(preg_match('/Test von (.*)/', $str, $result) === 1)
{
echo 'YaY! Found ' . $result[1];
}
else
{
echo 'NaY, not there >.<';
}