Find perpendicular segments at ends of segment [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Hello,
I'm making an application in which I have the points (p0,p1), and need to find the points for perpendicular segments at the end of (p0,p1)... namely, (A,B) and (C,D), which are of length $len.
There is a similar question to this one in this post, but unfortunately I am not sure about how to interpret the answer...
I'm using php for this project, but the solution can be in any language as I can translate it later.

(A-E)/(l/2) = (p1-F)/L
and so on...

Related

How to convert Number into Words in yii2 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I need to convert amount into words for example total = 5600 into five thousand six hundred only in yii2
In case of using Yii2 you can do it as simple as the following:
see this Doc reference.
You have to use formatter it will then format it according to your app's language

how to get information from a link in php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
If give you a link like http://login.php?workerid=abc,
how can we get the information of workerid in php? Thanks.
Maybe $_GET function, but do not know exactly how to make that work.
you can get information from url like this
$data=$_GET['workerid'];

In PHP If XML Element Contains Certain Text [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
In PHP is it possible to search an XML document for certain text in an element? I've looked but I can't find something that satisfies my needs.
Sure you can do that using strpos function
http://php.net/manual/en/function.strpos.php
if(strpos($xml_str, "string_to_search_for")){
echo "Found";
}

How Retrive A Piece Of Text From A Source Website With PHP? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have to get something that has been shared on a website and it changes every day. but i dont know how to do this. how can i do this?
You could download the exact page you're after using file_get_contents
$web = file_get_contents("http://google.com")
You'd then have to strip out whatever it is you want from the rest of the source code on the website. That can be done by using strpos or stripos (ipos being case insensitive) to find its location, and then using substr to extract that part of the string.

Principal Component Analysis in PHP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm looking for a class or a function, or just a piece of code that would do Principal Component Analysis (PCA) in PHP. I am interested in reducing dimensionality of some data.
I know that PHP is not the right language for heavy computation, so please don't suggest to use another language!

Categories