explode(3) MudOS v21c2 (5 Sep
1994)
名称:
语法:
string *explode( string str, string del );
字符串 *explode( 字符串 str, 字符串 del );
用法:
explode() 返回一个字符串的数组 (array), 此数组是字符串 str 以 del 分界打断的片段.
范例:
explode( str, " " );
这样会返回一个 str 中所有英文单字的字符串数组 (假设 str 是英文句子, 每一个单字由空白字符隔开).
参考:
翻译:
Spock @ FF 97.Feb.12. (printed 3/16/95)
回到上一页