# alch\_get\_network\_option

Function `alch_get_network_option` is similar to [`alch_get_option`](https://docs.alchemy-options.com/functions/alch_get_option). It returns the value of a saved network option.

For client-side use [getNetworkOption](https://docs.alchemy-options.com/javascript/get_network_option).

## Parameters

The function takes `$optionID` and `$default` as parameters. `$optionID` should match the `id` of some field in the main network [configuration object](https://docs.alchemy-options.com/configuration).

## Return values

Return value can be of several types, depending on the [type of the field](https://docs.alchemy-options.com/fields).

## Example

```php
    $myNetworkVal = alch_get_network_option( 'field-id', 'Some default value' );
```

If `field-id` has a value in the database, it will be assigned to the `$myNetworkVal` variable, otherwise, `$myNetworkVal` will be `Some default value`.
