Jump to content

Trying to understand code


runnerpaul

Recommended Posts

Could somebody please explain what  the below code means?

if(!mb_ereg("^[0-9)(xX -]{7,20}$",$value))

 

I just understand it. It comes from the following:

           if(mb_eregi("phone",$field) 
              or mb_eregi("fax",$field))
           {
              if(!mb_ereg("^[0-9)(xX -]{7,20}$",$value))
              {
                 $errors[] = "$value is not a valid  
                              phone number. ";
              }
           }

 

Cheers

Paul

Link to comment
https://forums.phpfreaks.com/topic/226514-trying-to-understand-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.