PHP code Fahrenheit to Celsius - Php

How to convert fahrenheit to celsius in PHP?

Snippet Code


  
Rate this page :
  [ 0 votes]

Here, you can convert fahrenheit to celsius using this php code.

<?php function fahrenheit_to_celsius($fh) { if (is_numeric($fh)) { $celsius = floor(($fh - 32)*5/9); } return $celsius; } echo fahrenheit_to_celsius('98'); ?>

Tags


Ask Questions

Ask Question