Method: db::field

Returns a single field value from a table

Info

Syntax

db::field($table, $field, $where=null, $order=null)

Parameters

Return (mixed)

Example


$username = db::field('user', 'username', array('id' => 1));
// sample result: bastian