Google\Spreadsheet\Spreadsheet::getTitle PHP Method

getTitle() public method

Returns the title (name) of the spreadsheet
public getTitle ( ) : string
return string
    public function getTitle()
    {
        return $this->xml->title->__toString();
    }

Usage Example

コード例 #1
0
 public function testGetTitle()
 {
     $spreadsheet = new Spreadsheet($this->getSimpleXMLElement("spreadsheet"));
     $this->assertEquals("Test Spreadsheet", $spreadsheet->getTitle());
 }
All Usage Examples Of Google\Spreadsheet\Spreadsheet::getTitle