TwistPHP Documentation

createTable

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

createTable

Parameters

Name Type Description
$strTablestringn/a
$arrFieldsarrayn/a
[$strAutoIncrement = 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';
$arrFields = array(=> 'foo'=> 'bar');
$strAutoIncrement null;

//Call the function createTable with the example vars
$resProtocolJSON = new \Twist\Core\Models\Database\ProtocolJSON();
$resProtocolJSON -> createTable($strTable$arrFields$strAutoIncrement);