PHP code example of devwellington / brazilian-ddd-to-uf

1. Go to this page and download the library: Download devwellington/brazilian-ddd-to-uf 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/ */

    

devwellington / brazilian-ddd-to-uf example snippets




\BrazilianDddToUF\Convert\ConvertDDDtoUF::getUF(31);

<?= \BrazilianDddToUF\Convert\ConvertDDDtoUF::getUF(31) 

<?= \BrazilianDddToUF\Convert\ConvertDDDtoStateName::getStateName(31) 

<?= var_dump(\BrazilianDddToUF\Convert\ConvertDDD::getArrayDDDandStateName(31)); 

<?= var_dump(\BrazilianDddToUF\Validate\Validate::isValid(9));