Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets file modification time
<?php filemtime(string $filename): int|false
<?php     public function lastModified($path)

    {

        return filemtime($path);

    }
<?php         $hasEnvironment = file_exists($environmentFile);



        $environmentLastModified = $hasEnvironment

                            ? filemtime($environmentFile)

                            : now()->addDays(30)->getTimestamp();



        $process = $this->startProcess($hasEnvironment);
<?php             if (! $this->option('no-reload') &&

                $hasEnvironment &&

                filemtime($environmentFile) > $environmentLastModified) {

                $environmentLastModified = filemtime($environmentFile);



                $this->newLine();
<?php             if (! $this->option('no-reload') &&

                $hasEnvironment &&

                filemtime($environmentFile) > $environmentLastModified) {

                $environmentLastModified = filemtime($environmentFile);



                $this->newLine();