Re: [PHP] String operation

2002-09-04 Thread Bas Jobsen

$string3 = str_replace($string1,'',$string2); ???
Op woensdag 04 september 2002 17:04, schreef Richard Fox:
> Hi
>
> Given
>
> string1 = /home/web/
> string2 = /home/web/www/index.php
>
> How can I elegantly do an exclusive or of string1 with string2, that is, I
> want to end up with
>
> string3 = www/index.php
>
> Thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] String operation

2002-09-04 Thread Richard Fox

Hi

Given

string1 = /home/web/
string2 = /home/web/www/index.php

How can I elegantly do an exclusive or of string1 with string2, that is, I want to end 
up with 

string3 = www/index.php

Thanks!