> Hello, I'd like to check for a character at the end of a string, if it
> exists remove it, example:
>
> Looking for - Z
> In string - StringZ
> Result would be - String
>
> -or-
> Looking for - Z
> In string - StringZzz
> Result would be - StringZzz (no change)
if($str{strlen($str)-1}=='Z') $st
Hello, I'd like to check for a character at the end of a string, if it
exists remove it, example:
Looking for - Z
In string - StringZ
Result would be - String
-or-
Looking for - Z
In string - StringZzz
Result would be - StringZzz (no change)
Thanks! Karl
BTW: You guys are great!
--
PHP Gen
2 matches
Mail list logo