TwistPHP Documentation

table

File path: dist/twist/Core/Helpers/Database.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

tableGet, Create and Manipulate the structure of database tables using a table object. Truncate, Optimize, Rename and Drop tables with a single function call. All dependant on your database privileges.

Parameters

Name Type Description
$strTablestringn/a
[$strDatabase = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strTable 'foo';
$strDatabase null;

//Call the function table with the example vars
Twist::Database() -> table($strTable$strDatabase);