PHP code example of imliam / php-indefinite-article
1. Go to this page and download the library: Download imliam/php-indefinite-article 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/ */
imliam / php-indefinite-article example snippets
bash
composer
php
$word = new ImLiam\IndefiniteArticle\IndefiniteArticle('apple');
echo $word->parse();
// "an apple"
echo $word->article();
// "an"