Sunday, May 10, 2009

How To Check Length Using ereg function

Check length of string using ereg php function



$str = "1234";
if(ereg([0-9]{4}, $str)) {

pirint "Matched";

}

No comments:

Post a Comment