i have some code to take the name of a user from a database and print it on screen, all works fine but i am looking to put 's at the end, so the name could be joe and would display as joe's... i can also do that, but if the name ends with s i would like to put just a ' at the end rather than 's
i have tried using an if statement like this...
Code: Select all
<php
if($name == %s){
print"$name'";
}
else{
print"$name's";
}
?>how could i change this to do as i'm looking to?
thanks for the help