DANNY:
Quote from: okedol on September 13, 2011, 09:52:59 PM malah gini bang :
Notice: Undefined offset: 0
lancar sob ane test...
salah variable nya kali ente nih coba jalanin langsung
<?php
$text = 'http://www.jdkjsbkjfbsd.com hahahaha';
$filter = 'http';
preg_match("/".$filter."/", $text, $matches);
if ($filter == $matches[0])
{
$text = 'hay';
}
echo $text;
?>