PHP code example of elevenstack / morsecode
1. Go to this page and download the library: Download elevenstack/morsecode 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/ */
elevenstack / morsecode example snippets
use elevenstack\src\morsecode;
$morse = new morsecode('string', 'encode');
/*
* code returned:
* ... - .-. .. -. --.
*/
use elevenstack\src\morsecode;
$morse = new morsecode('... - .-. .. -. --.', 'decode');
/*
* code returned:
* string
*/