Home php教程 php手册 这个分页函数非常高只能的

这个分页函数非常高只能的

Jun 21, 2016 am 09:04 AM
count index lt print split

$a="这是一个小段落.看吧";
$a.="这又是小句!";
$a.="最后一句?";
$a.="这是结果了!";
//其实这是一个长的字句。

$b=split("[\.\!\?]",$a,4);
//根本句号,!号,问号等按自己的要求分段

for($index=0;$index{
print "$index.$b[$index]
";
}
//在循环中读出数组。

?>



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What file is index.html? What file is index.html? Feb 19, 2024 pm 01:36 PM

What file is index.html?

The difference between counta and count The difference between counta and count Nov 20, 2023 am 10:01 AM

The difference between counta and count

How to use the split method in Java String How to use the split method in Java String May 02, 2023 am 09:37 AM

How to use the split method in Java String

How to use split in python How to use split in python Nov 17, 2023 am 10:13 AM

How to use split in python

How to solve 'undefined: bytes.Split' error in golang? How to solve 'undefined: bytes.Split' error in golang? Jun 25, 2023 pm 02:02 PM

How to solve 'undefined: bytes.Split' error in golang?

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决

What is the use of split method in go language What is the use of split method in go language Jan 28, 2023 pm 01:37 PM

What is the use of split method in go language

Detailed explanation of split command in Linux Detailed explanation of split command in Linux Feb 21, 2024 pm 06:06 PM

Detailed explanation of split command in Linux

See all articles