You are here

protected function WKT::endsWith in geoPHP 8

Same name and namespace in other branches
  1. 7 geoPHP/lib/adapters/WKT.class.php \WKT::endsWith()
3 calls to WKT::endsWith()
WKT::parseMultiLineString in geoPHP/lib/adapters/WKT.class.php
WKT::parseMultiPolygon in geoPHP/lib/adapters/WKT.class.php
WKT::parsePolygon in geoPHP/lib/adapters/WKT.class.php

File

geoPHP/lib/adapters/WKT.class.php, line 187

Class

WKT
WKT (Well Known Text) Adapter

Code

protected function endsWith($str, $char) {
  if (substr($str, 0 - strlen($char)) == $char) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}