Check length of string using ereg php function
$str = "1234";
if(ereg([0-9]{4}, $str)) {
pirint "Matched";
}
Code & help 4 PHP, JavaScript, HTML, DHTML, CSS, Flex, Dot Net, SharePoint, C-Sharp, Java, ReactJs, NextJs, Node, Web Tools, Blockchain
$str = "1234";
if(ereg([0-9]{4}, $str)) {
pirint "Matched";
}
Comments
Post a Comment