English [t??p] US [t?ɑ:p]

v. ?? ??; ??? ????; ??: ? ???: ? ?? ??: ?? ? ? ?? ??: ?? ? ?

PHP ?() ?? ???

chop() ??? ??? ??????

php cut ??? rtrim ??? ?????. ?? ??? ??? ???? ???? ?? ?? ??? ??? ???? ???? ?????.

??: chop ??? rtrim ??? ?????. ??? ???? ???? ?? ?? ??? ??? ?????. :

chop(string,charlist)

????:

ParameterDescriptionstring??? ???charlist?? ?? , ??? ?? ?? ???? ?? ??? ?? ?? ??? ?????."

PHP ?() ?? ?

<?php
$i = "hello world    ";
echo "未經(jīng)過處理的".$i."右邊是有空格的!";
$j = chop($i);
echo "經(jīng)過處理的".$j."右邊是沒有空格的!";
?>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????

??:

未經(jīng)過處理的hello world 右邊是有空格的!經(jīng)過處理的hello world右邊是沒有空格的!

<rt id="xbqlz"></rt>