PHP code example of etechnika / idna-convert

1. Go to this page and download the library: Download etechnika/idna-convert 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/ */

    

etechnika / idna-convert example snippets



	use Etechnika\IdnaConvert\IdnaConvert as IdnaConvert;
    IdnaConvert::encodeString( 'żółw.pl' ); // prints 'xn--w-uga1v8h.pl'
    IdnaConvert::decodeString( 'xn--w-uga1v8h.pl' ); // prints 'żółw.pl'