PHP函数详细剖析之rtrim函数 By ACReaper
<?php // Example 1: rtrim('This is a short short sentence', 'short sentence'); // returns 'This is a' // If you were expecting the result to be 'This is a short ', // then you're wrong; the exact string, 'short sentence', // isn't matched. Remember, character-by-character comparison! // Example 2: rtrim('This is a short short sentence', 'cents'); // returns 'This is a short short '?>
2013 09 11
By ACReaper