title: How to convert points from MySql database to WKT using PHP?
body: <p>In MySql database I have points (pairs of latitudes and longitudes represented as doubles) like this:</p>
  
  <pre><code>LATITUDE | LONGITUDE
  ---------|----------
  45.045664| 46.084528
  26.938933| 60.903848
         .....
  </code></pre>
  
  <p>Now, what I need is to get these points from my database (which is not a problem at all) and echo them in a WKT format (this part I don't know). This PHP script is going to be a part of an API used by Windows App.</p>
  
  <p>So question is: how can I convert points to WKT format? Is there any plugin I can use? Which are the best approaches?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Output should look like WKT line, e.g.:</p>
  
  <pre><code>LINESTRING(3 4,10 50,20 25)
  </code></pre>