String operation
| From: | Richard Fox | Date: | Wed, 04 Sep 2002 15:04:43 +0000 |
| Subject: | String operation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115184@lists.php.net to get a copy of this message | ||
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!