<?php $str=rtrim($str); $str="ronak modi"; $str=preg_replace('/\s*$/','',$str); echo $str; ?>
You have javascript disabled. You will not be able to edit any code.