Get Environment Variable using PHP

getenv function

<?php

$envVar = getenv('PATH');

echo $envVar;

Leave a Comment

Cancel reply

Your email address will not be published.