PHP code example of renderbit / normalize-phone
1. Go to this page and download the library: Download renderbit/normalize-phone library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
renderbit / normalize-phone example snippets
php
normalize_phone('9434012345'); // '919434012345'
normalize_phone('+919434012345'); // '919434012345'
normalize_phone('+91-9434012345'); // '919434012345'
normalize_phone('+19434012345'); // '19434012345'
normalize_phone('+91 9434012345'); // '919434012345'
normalize_phone('(+91) 94340 12345'); // '919434012345'