Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

zekena / Unit-calculator

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Unit-calculator
  • categories
  • options.php
Find file
BlameHistoryPermalink
  • zekena's avatar
    project implementation. · 036803c4
    zekena committed 6 years ago
    036803c4
options.php 522 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php
function length_options(){
    $selected = 'selected';
    $length_options = array(
      "inches" => 0.0254,
      "feet" => 0.3048,
      "yards" => 0.9144,
      "miles" => 1609.344,
      "millimeters" => 0.001,
      "centimeters" => 0.01,
      "meters" => 1,
      "kilometers" => 1000,
      "acres" => 63.614907234075,
      "hectares" => 100);
    $choice = '';
    while(list($k,$v)=each($length_options))
    {
      $choice.='<option value = "'.$k.'">'.$k.'</option>';
    }

    return $choice;

  }
?>