Wednesday, December 6, 2017

String Trim in PHP

<?php

$string = 'I am Thet Naing Win.';
$string_trimmed = rtrim($string);
echo $string_trimmed;

?>

No comments:

Post a Comment