Hi,
I have variable with path ex: $var1=C:\Windows\Tools
But i need have $var2 with C:\Windows, I need that $var2 contains the same that $var1 but without last (a-z)\ item.
Another example:
$var1=C:\Windows\Tools\Help
$var2 should be = C:\Windows\Tools
I Need this with preg_replace… I have spended many hours and its impossible!!
Thanks