You are here

protected function WKT::beginsWith in geoPHP 7

Same name and namespace in other branches
  1. 8 geoPHP/lib/adapters/WKT.class.php \WKT::beginsWith()
4 calls to WKT::beginsWith()
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
WKT::trimParens in geoPHP/lib/adapters/WKT.class.php
Trim the parenthesis and spaces

File

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

Class

WKT
WKT (Well Known Text) Adapter

Code

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