save()" to store any changes made to the database.">

TwistPHP Documentation

set

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

setSet a single field in the record to a new value, you must call "->save()" to store any changes made to the database

Parameters

Name Type Description
$strFieldstringn/a
$strValuestringn/a

Return Values

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

Example

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

//Call the function set with the example vars
$resRecord = new \Twist\Core\Models\Database\Record();
$resRecord -> set($strField$strValue);