/ Published in: PHP
Expand |
Embed | Plain Text
// http://stackoverflow.com/questions/1091107/how-to-join-filesystem-path-strings-in-php function join_paths() { foreach($args as $arg) { } foreach($paths as &$path) { } // remove empty elements from the array // make sure if the path was originally an absolute path that it is kept that way $paths[0] = '/' . $paths[0]; } }
You need to login to post a comment.
