table clearThis function clears existing tables so they contain 0 rows and 0 coluns.
Indirect parameter passing is enabled
Min. 1
| No. | Type | Description |
|---|---|---|
| Min. 1 input |
string | name of existing table Both existing and non-existing table names are allowed. |
table initialize( t1, { { Name, Street, Nr }, { Alex, Main St., 231 }} );
echo("Initialized table:");
table list( t1 );
table clear( t1 );
echo("Cleared table:");
table list ( t1 ); // Nothing to listInitialized table:
0 : Name | Street | Nr
1 : Alex | Main St. | 231
Cleared table: