2 ms·
From what I've learned it's very similar. The main difference is directories use forward slash instead of backslash, which is why I've taken to using "DIRECTORY
by zelon88 7y ago
From what I've learned it's very similar. The main difference is directories use forward slash instead of backslash, which is why I've taken to using "DIRECTORY_SEPARATOR" instead. Functionally it's not a big deal going from a linux app to Windows because Windows will translate the path for file operations (but not for echo or print operations). Linux I don't think will translate forward slash to backslash.
One of the main reasons I chose PHP is because it's considerably faster than Python for this. I'm like 99.9% sure that statement is true but I've never ported this so I can't say for certain. I've just done way less complicated loops in Python that still take way longer than this one.