andreeppinghaus / compare-taxon-name
比较物种名称,包括性别、属名、亚种、变种。
dev-main
2023-04-22 11:00 UTC
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-09-22 14:14:51 UTC
README
比较物种名称,包括性别、属名、亚种、变种。
安装
composer require andreeppinghaus/compare-taxon-name
示例
use CompareTaxonName\CompareTaxonName;
$compareTaxonName = new CompareTaxonName();
$scientificNameSource = "Caryocar glabrum (Aubl.) Pers. subsp. glabrum (Aubl.) Pers.";
$scientificNameSearch = "Caryocar glabrum (Aubl.) Pers. subsp. glabrum (Aubl.) Pers.";
if ( $compareTaxonName->compare(
$scientificNameSource,
$scientificNameSearch
) ) {
echo "found";
}else {
echo "not found";
}