12 lines
161 B
PHP
12 lines
161 B
PHP
|
|
<code type="php">
|
|
$record = new User();
|
|
|
|
$record->exists(); // false
|
|
|
|
$record->name = 'someone';
|
|
$record->save();
|
|
|
|
$record->exists(); // true
|
|
</code>
|