# notificationx/3.2.11/vendor/wpdeveloper/lib-settings/test/basic.php

NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner &amp; Floating Notification Bar, version 3.2.11. 37 lines.

- Page: https://pluginprobe.com/plugins/notificationx/3.2.11/code/vendor/wpdeveloper/lib-settings/test/basic.php
- Raw: https://pluginprobe.com/plugins/notificationx/3.2.11/raw/vendor/wpdeveloper/lib-settings/test/basic.php
- Modified: 2024-05-21T07:46:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/notificationx/3.2.11/code/vendor/wpdeveloper/lib-settings/test/basic.php#L10-L20`.

```php
<?php

// Instantiate and load Settings.
$settings  = new Settings(array(
  "store" => "options",
  "key" => "settings_test",
  "format" => "object"
));

$settings->set( 'make', 'Chevy' );
$settings->set( 'model', 'Tahoe' );
$settings->set( 'features', array(
  'ac',
  'stuff'
));

$settings->set( 'features', array(
  'dvd',
  'sunroof'
));

$settings->set( 'options', array(
  "rims" => '24',
  "towing" => true,
  "onstar" => 'active'
));

$settings->set( 'options', array(
  "gps" => 'standard'
));

//echo '<br />get all: <pre>' . print_r( $settings->get(), true ) . '</pre>';
echo '<br />get make: ' . print_r( $settings->get( 'make' ), true );
echo '<br />get options.gps: ' . print_r( $settings->get( 'options.gps' ), true );
echo '<br />get features: ' . print_r( $settings->get( 'features' ), true );
die( '<pre>get all' . print_r( $settings->get(), true ) . '</pre>' );

```
