Answers for "php sms verification"

PHP
1

php validate phone number

$phone = '000-0000-0000';

if(preg_match("/^[0-9]{3}-[0-9]{4}-[0-9]{4}$/", $phone)) {
  // $phone is valid
}
Posted by: Guest on February-23-2021
-1

php sms

<?php
  
 $to = "[email protected]";
 $from = "[email protected]";  
 $message = "This is a text message";
 $headers = "From: $from\n";
 mail (sto,  '', $message, $headers);

?>
   
#get a domain and succees
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language