Anonymous user
Find common directory path: Difference between revisions
→{{header|PHP}}
m (→{{header|C}}) |
|||
Line 1,089:
/* A more compact string-only version, which I assume would be much faster */
/* If you want the trailing /, return $common; */
function getCommonPath($paths) {
|