php8.5
Home/ Manual/ swoole / table/ Swoole\Table::column

Swoole\Table::column

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Set the data type and size of the columns.

Description

Swoole\Table::column(string $name, string $type, [int $size]): bool

Parameters

name

Specify the name of the field.

type

Specify the field type.

size

Specify the maximum length of the string field.

Return Values

Source: reference/swoole/swoole/table/column.xml · from the official PHP manual (php/doc-en)