Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 873741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:59:22+00:00 2026-05-15T10:59:22+00:00

I have point A(x,y) and B(x,y). they listed as array (a => array(x,y), b

  • 0

I have point A(x,y) and B(x,y). they listed as array (a => array(x,y), b => array(x,y))

How get lenght between point A and B. Please help in php. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:59:23+00:00Added an answer on May 15, 2026 at 10:59 am

    Well, remember your high-school geometry.

    r = square_root((x2 - x1)^2 + (y2 - y1)^2)
    

    So in php:

    $dx = $points['b'][0] - $points['a'][0];
    $dy = $points['b'][1] - $points['a'][1];
    $r = sqrt(pow($dx, 2) + pow($dy, 2));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 532k
  • Answers 532k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The this keyword basically is a pointer reference to the… May 17, 2026 at 12:06 am
  • Editorial Team
    Editorial Team added an answer use CGAffineTransform At least from what I have observed and… May 17, 2026 at 12:06 am
  • Editorial Team
    Editorial Team added an answer Just an explanation for why this exception is thrown. You… May 17, 2026 at 12:06 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have nested ajax calls that are not working in ie7. They work fine
I have 2 obj files assembled with GNU as , they are: a.o :
I have tried compiling the service EXE file as AnyCPU, x86, and x64. It
I have a persistent object with 7 pertinent fields. The fields can hold the
I have a customer using the Access 97 runtime to support part of their
We have a desktop app that allows users to fill in a questionnaire. For
I have a MySQL 5.1 InnoDB table ( customers ) with the following structure:
I have a Google Map, and I am adding event listeners to different things.
The Context At the moment, I have a JTextArea that has been created like
Lets say I have named some elements with the following structure: 1:0 11:0 21:0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.