Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 42ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register
e

env

Recently created Least recently created Recently updated Least recently updated
anthony

anthony / Simple dotenv loader

Last active 1 month ago env php

Taken from https://gist.github.com/shakahl/9933eb74b8a89d3e5f34c86ce1f0c840

0 0 1
1 <?php
2
3 /**
4 * Loads an environment variable
5 *
6 * @param string $name
7 * @param mixed|null $def
8 * @param bool $local
9 * @return array|mixed|string|null
10 */