IHYPRESS.NET
PHP
HOME | ASP | C | CSS | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
PHP ❯ Associative Arrays
<10>
<?php /* associative arrays */ $year["Independence"] = 1776; $year["WW2-Begin"] = 1939; $year["WW2-End"] = 1945; echo "<div style='font-size:22px;color:#006600;'>"; echo "The United States became independent in " . $year["Independence"] . ".<br>"; echo "World War Two occurred between " . $year["WW2-Begin"]. " and " . $year ["WW2-End"] . ".<br>"; echo "</div>"; ?>
The United States became independent in 1776.
World War Two occurred between 1939 and 1945.
COPYRIGHT © 2015-2024 IHYPRESS.NET. A DIVISION OF IHY PRESS. ALL RIGHTS RESERVED.