php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "formula"

How can PHP interact with a database to retrieve and calculate distances between geographic points for a proximity search?

To calculate distances between geographic points for a proximity search in PHP, you can use the Haversine formula. This formula calculates the distanc...

How can distance in kilometers be calculated using coordinates in PHP?

To calculate the distance between two points given their coordinates in kilometers, you can use the Haversine formula. This formula takes into account...

What alternative approach can be taken to calculate compound interest in PHP without using a for loop, as suggested in the forum thread?

The issue of calculating compound interest in PHP without using a for loop can be solved by using the formula for compound interest directly. This for...

How can you use PHP to calculate the percentage of a value compared to another value?

To calculate the percentage of a value compared to another value in PHP, you can use the formula: (value / total) * 100. This formula will give you th...

How can PHP developers efficiently calculate percentages of numbers within their scripts?

To efficiently calculate percentages of numbers in PHP, developers can use the following formula: (percentage / 100) * number. This formula converts t...

Showing 36 to 40 of 137 results

‹ 1 2 ... 5 6 7 8 9 10 11 ... 27 28 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.