回php_cookbook
//'5.1'指定樣式替換的結果
//'5.9'檢驗網頁傳送的資料
//'5.12'檢查重複的字
the: =>2
ugly: =>1
lady: =>1
chased: =>1
handsome: =>1
man: =>1
There were [the] occurrences of the word 'the'
The The the Hello Truck Hello The the Jester Rye
array(6) {
[""]=>
array(1) {
[0]=>
bool(false)
}
["the"]=>
array(5) {
[1]=>
int(1)
[2]=>
int(5)
[3]=>
int(9)
[7]=>
int(31)
[8]=>
int(35)
}
["hello"]=>
array(2) {
[4]=>
int(13)
[6]=>
int(25)
}
["truck"]=>
array(1) {
[5]=>
int(19)
}
["jester"]=>
array(1) {
[9]=>
int(39)
}
["rye"]=>
array(1) {
[10]=>
int(46)
}
}
//'5.13'減少輸入的需要
Deleted