evaluate home tilde 7e in php

Solutions on MaxInterview for evaluate home tilde 7e in php by the best coders in the world

showing results for - "evaluate home tilde 7e in php"
Emmanuel
31 Apr 2020
1function expand_tilde($path)
2{
3    if (function_exists('posix_getuid') && strpos($path, '~') !== false) {
4        $info = posix_getpwuid(posix_getuid());
5        $path = str_replace('~', $info['dir'], $path);
6    }
7
8    return $path;
9}
10
similar questions
queries leading to this page
evaluate home tilde 7e in php