Hello.
I need to strip some code...
FROM: http://www.foo.com/download/bar.zip
TO: bar.zip
Thanks.
Ok, let me ask this, instead...
Is there a better/faster way to do it than:
$foo = "http://www.foo.com/download/bar.zip"; $bar = explode( "/", $foo ); $bar[4];
something along these lines...
$foo = "http://www.foo.com/download/bar.zip"; $bar = explode ("/", $foo); $foo2 = array_reverse($bar);
echo "$bar[0]";