src/Postgresql/PostgresqlDriver.php
public function getStringPositionSql($substring, $string)
	{
		$this->connect();

		$query = "SELECT POSITION( $substring IN $string )";
		$this->setQuery($query);
		$position = $this->loadRow();

		return $position['position'];
	}
public function getStringPositionSql($substring, $string)
	{
		$this->connect();

		$query = "SELECT POSITION( $substring IN $string )";
		$this->setQuery($query);
		$position = $this->loadRow();

		return $position['position'];
	}
public function getStringPositionSql ( $ substring , $ string ) { $ this -> connect ( ) ; $ query = "SELECT POSITION( $substring IN $string )" ; $ this -> setQuery ( $ query ) ; $ position = $ this -> loadRow ( ) ; return $ position [ 'position' ] ; }
Get the substring position inside a string

@param   string  $substring  The string being sought
@param   string  $string     The string/column being searched

@return  integer  The position of $substring in $string

@since   1.0
Get the substring position inside a string