Name
rtrim()
Synopsis
string rtrim ( stringstr
[, stringtrim_chars
] )
The rtrim()
function works like the normal trim()
, except it only trims whitespace from the righthand side of a string.
$string = rtrim(" testing "); // $string is " testing"
Get PHP in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.