You are here

protected function WKT::endsWith in geoPHP 7

Same name and namespace in other branches
  1. 8 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 198

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;
  }
}