Just for fun:
$s = 'YANDS'; substr( $s, 0, 1) ^= substr( $s, -1 ) ^= substr( $s, 0, 1 ) ^= substr( + $s, -1 ); print $s; SANDY
In reply to Re: Swap the characters
by BrowserUk
in thread Swap the characters
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |