Previous Page
dump()

Solar_Request
env()

Next Page
files()

env()

public mixed env ( string $key default NULL, string $alt default NULL )

Retrieves an unfiltered value by key from the $env property, or an alternate default value if that key does not exist.

Parameters

  • (string) $key: The $env key to retrieve the value of.
  • (string) $alt: The value to return if the key does not exist.

Returns

  • (mixed) The value of $env[$key], or the alternate default value.

Description

Retrieves an unfiltered value by key from the $env property, or an alternate default value if that key does not exist.