// echo $filterAlpha->filter($vName); //echo $filterAlpha->filter("This....!!!As is (my) content: 123"); // if ( strlen($filterAlpha->filter($vName)) != strlen($vName) ) { if (!$validatorAlpha->isValid($vName)) { $vName = $filterAlpha->filter($vName); $controlMessage = $controlMessage . ' içerisinde alfabetik olmayan değer var!!! // '; $errorcode = 3; $hatasayisi = $hatasayisi + 1; } if (!$validatorNotEmptyString->isValid($vName)) { $result = $validatorNotEmptyString->isValid($vName); $controlMessage = $controlMessage . ' Boş Değer //'; $errorcode = 2; $hatasayisi = $hatasayisi + 1; } $validatorStringLength->setMessages(array('stringLengthTooShort' => $messageName . 'en az ' . $validatorStringLength->getMin() . ' karakter olmak zorunda...', 'stringLengthTooLong' => $messageName . 'en fazla ' . $validatorStringLength->getMax() . ' karakter olmak zorunda...')); if (!$validatorStringLength->isValid($vName)) { $messages = $validatorStringLength->getMessages(); $controlMessage = $controlMessage . current($messages); $errorcode = 1; $hatasayisi = $hatasayisi + 1; } ////////////////////////////////////////////////////////////////////////// $vParent = trim($_GET['parent']); $messageName = 'Parent Değerinde '; $controlMessage1 = $messageName; if (!$validatorAlpha->isValid($vParent)) { $vParent = $filterAlpha->filter($vParent); $controlMessage1 = $controlMessage1 . ' içerisinde alfabetik olmayan değer var!!! // '; $errorcode = 6; $hatasayisi1 = $hatasayisi1 + 1;