View Full Version : How do i get rid ofa part of a string?
DanBoland
November 23rd, 2000, 14:09
If i had a string like this:
$a = "/home/name/public_html/dir/dir2/index.html";
how could i make $b = "/dir/dir2/index.html";
Any one know?
KapTinKiRk
November 23rd, 2000, 14:56
$BaseDir = "/home/name/public_html";
$a = "$BaseDir/dir/dir2/index.html";
$b = "$BaseDir/dir/dir3/index.html";
If thats not what you mean, then be more specific.
DanBoland
November 23rd, 2000, 23:40
thanks, but thats not what i meant. But i found a better way to do what i wanted to do.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.