examples/Client/CloudStorageService.php
public function createTable($name)
    {
        $cloudTable = null;

        try {
            $this->_tableProxy->createTable($name);
            $cloudTable = new CloudTable($name, $this->_tableProxy);
        } catch (\Exception $e) {
            if ($e->getCode() == WindowsAzureErrorCodes::TABLE_ALREADY_EXISTS) {
                $cloudTable = new CloudTable($name, $this->_tableProxy);
            }
        }

        return $cloudTable;
    }
public function createTable($name)
    {
        $cloudTable = null;

        try {
            $this->_tableProxy->createTable($name);
            $cloudTable = new CloudTable($name, $this->_tableProxy);
        } catch (\Exception $e) {
            if ($e->getCode() == WindowsAzureErrorCodes::TABLE_ALREADY_EXISTS) {
                $cloudTable = new CloudTable($name, $this->_tableProxy);
            }
        }

        return $cloudTable;
    }
public function createTable ( $ name ) { $ cloudTable = null ; try { $ this -> _tableProxy -> createTable ( $ name ) ; $ cloudTable = new CloudTable ( $ name , $ this -> _tableProxy ) ; } catch ( \ Exception $ e ) { if ( $ e -> getCode ( ) == WindowsAzureErrorCodes :: TABLE_ALREADY_EXISTS ) { $ cloudTable = new CloudTable ( $ name , $ this -> _tableProxy ) ; } } return $ cloudTable ; }
Creates table if it does not exist.

@param string $name The table name.

@return CloudTable
Creates table if it does not exist .