src/Psecio/Iniscan/Rule.php
public function getSection($path = null)
	{
		if ($path !== null) {
			$parts = explode('.', $path);
			return (count($parts) == 1) ? 'PHP' : $parts[0];
		} else {
			return $this->section;
		}
	}
public function getSection($path = null)
	{
		if ($path !== null) {
			$parts = explode('.', $path);
			return (count($parts) == 1) ? 'PHP' : $parts[0];
		} else {
			return $this->section;
		}
	}
public function getSection ( $ path = null ) { if ( $ path !== null ) { $ parts = explode ( '.' , $ path ) ; return ( count ( $ parts ) == 1 ) ? 'PHP' : $ parts [ 0 ] ; } else { return $ this -> section ; } }
Get the current section setting

@param string $path INI "path" to setting [optional]
@return string Section name
Get the current section setting