读书人

PHP函数详细辨析之rtrim函数 By ACRea

发布时间: 2013-09-12 22:07:04 作者: rapoo

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

读书人网 >PHP

热点推荐