显示下拉菜单

mb_strimwidth()

« mb_strcut | mb_stripos »
<?php
mb_internal_encoding
("UTF-8");

$string mb_strimwidth (
    
// string $str
    
// int $start
    
// int $width
    
// [string $trimmarker = ""]
    
?  // [string $encoding = mb_internal_encoding()]
);

// enter non ASCII characters in hex if $encoding is not UTF-8
// the result may not display properly if $encoding is not UTF-8
?>
结果
$string = 'Hello W...'
示例
#1 mb_strimwidth  ("Hello World",
 
0,
 
10,
 
"...")
另请参阅
mb_convert_case, mb_internal_encoding, mb_strwidth