您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

常用字符串函数(二)_PHP

2024/5/9 20:36:45发布46次查看
常用字符串函数(二)
$text = my dog's name is angus.;
 //print angus
 print(substr($text, 17, 5).);//取出子串
?>
//切开字串
 // create a demo string
 $line = leon\tatkinson\tleon@clearink.com;
 // loop while there are still tokens
 for($token = strtok($line, \t);
  $token != ;
  $token = strtok(\t))
 {
  print(token: $token
\n);
 }
?>
//传回字串中某字串开始处至结束的字串
 $text = although this is string, it's not very long.;
 print(.strstr($text, ,));
?>
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product