TwistPHP Documentation

truncate

File path: dist/twist/Core/Models/Database/Table.model.php
Namespace: Twist\Core\Models\Database
Extends:

truncateTruncate the table in your database, this command will only work if your database user has the TRUNCATE privilege or above.

Return Values

void — No return information has been documented for this function.

Example

<?php
//Call the function truncate with the example vars
$resTable = new \Twist\Core\Models\Database\Table();
$resTable -> truncate();