<?php $pswd = "!"; $specialChar= preg_match("/^[!@#&*%]+/", $pswd); // at least one $numberChar= preg_match("/^\d{2,}/", $pswd); //two or more digits echo $specialChar . " " . $numberChar;
You have javascript disabled. You will not be able to edit any code.