Aspose.Cells for Java and PHP

Working with PHP

Using PHP5

Aspose.Cells for Java provides PHP5 wrapper classes that make it easier for developers to use the Aspose.Cells library without working with Java classes directly.

These wrapper classes can be found in the PHP directory of aspose.cells.zip archive in the form of a PHP file.

Using PHP4

PHP4 also works with Aspose.Cells for Java but in this case, developers would need to work with Java classes directly.

PHP

 <?php

require_once("java/Java.inc");

require("AsposeCells.php");

$workbook = ClassFactory::createWorkbook();

$workbook->open5("t1.xls");

$cell = $workbook->getWorksheets()->get(0)->getCells()->getCell(0, 0);

$cell->setValue6("Hello World!"); 

$workbook->save5("t.xls");

?>