TwistPHP Documentation

setDatabase

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

setDatabaseSelect the default database for this connection to be using, all further queries will then be run on the newly selected database

Parameters

Name Type Description
$strDatabasestringn/a

Return Values

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

Example

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

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