コード例 #1
0
    <th>Name</th>
    <th>Class</th>
    <th>Abbr</th>
    <th>Type</th>
    <th>Explorer</th>
    <th>Block</th>
    <th>Difficulty</th>
    <th>Confirmable</th>
    <th>BlockBalance</th>
    <th>Receivable</th>
    <th>Hashable</th>
  </tr>
</thead>
<tbody>
<?php 
foreach (\DiscoveredComponents\Currencies::getAllInstances() as $code => $currency) {
    echo "<tr>";
    echo "<th>" . htmlspecialchars($code) . "</th>";
    echo "<td><span class=\"currency_name currency_" . $code . "\">" . htmlspecialchars($currency->getName()) . "</span></td>";
    echo "<td><i>" . get_class($currency) . "</i></td>";
    echo "<td>" . htmlspecialchars($currency->getAbbr()) . "</td>";
    echo "<td>";
    if ($currency->isCryptocurrency()) {
        echo "Cryptocurrency";
    }
    if ($currency->isFiat()) {
        echo "Fiat";
    }
    if ($currency->isCommodity()) {
        echo "Commodity";
    }