/ Published in: PHP
                    
                                        
Transforms string to it's possessive form and return it's original case form.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
/*
* Transform text to show ownership e.g Arvi's, Jess'
*/
public function to_possessive($string)
{
$possessive_form = ($last_letter == $letter_s) ? $string."'" : $string."'".$letter_s;
return $possessive_form;
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                