显示下拉菜单

grapheme_extract()

« gmstrftime | grapheme_stripos »
<?php
$string 
grapheme_extract (
    
// string $haystack
    
// int $size
    
?// [int $extract_type]
    
// [int $start = 0]
    
  // [int &$next]
);

// shows the url encoded result
$encoded urlencode($string);
?>
结果
$next = 5
$string = 'ö'
$encoded = 'o%CC%88'
示例
#1 grapheme_extract  ("a\xCC\x8Ao\xCC\x88",
 
1,
 
GRAPHEME_EXTR_COUNT,
 
2,
 
$next)
另请参阅
grapheme_substr, urlencode