<?php $path1 = 'C:\Winwdows\system32\drivers\etc'; $path2 = '/foo/bar/sub/home'; $t = microtime(); for ($i = 0; $i++; $i < 10000) { strtr($path1, '\\', '/'); strtr($path2, '\\', '/'); } var_dump(microtime() -$t); $t = microtime(); for ($i = 0; $i++; $i < 10000) { str_replace('\\', '/', $path1); str_replace('\\', '/', $path2); } var_dump(microtime() -$t);
You have javascript disabled. You will not be able to edit any code.