Scott, that works perfect. As a matter of fact, it works too perfect. Is there a way I can use a variable after the users name (like $s) instead so I can just use it where I need it and not have it show up where I don't?
BTW: What is a regexp? Just curious.
Quote:
Originally posted by PPN
em you could use a regexp but simplest way is
if(substr($userinfo['username'], -1) == '\\'') {
$userinfo['username'] .= 's';
} else {
$userinfo['username'] .= '\\'s';
}
|