显示下拉菜单

trim()

« trigger_error | uasort »
<?php
$string 
trim (
    
// string $str
    
  // [string $charlist = " \t\n\r\0\x0B"]
);
?>
结果
$string = 'These are a few words :) ...'
示例
#1 trim  ("\t\tThese are a few words :) ... ")
#2 trim  ("\t\tThese are a few words :) ... ",
 
" \t.")
#3 trim  ("Hello World",
 
"Hdle")
#4 trim  ("Hello World",
 
"HdWr")
#5 trim  ("\x09Example string\x0A",
 
"\x00..\x1F")
#6 trim  ("apple")
#7 trim  ("banana ")
#8 trim  (" cranberry ")
另请参阅
ltrim, mb_strimwidth, rtrim, str_replace