Skip to content

Commit 12344fa

Browse files
author
Martin Brecht-Precht
committed
Updated readme.
1 parent c9d94e9 commit 12344fa

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,31 +81,31 @@ $result = $builder->size();
8181
fwrite(STDOUT, ' 6. Number of bytes ' . $result . PHP_EOL);
8282
8383
$result = $builder->indexOf('e');
84-
fwrite(STDOUT, ' 7. First occurence of \'e\' ' . $result . PHP_EOL);
84+
fwrite(STDOUT, ' 7. First occurence of "e" ' . $result . PHP_EOL);
8585
8686
$result = $builder->indexOf('e', 5);
87-
fwrite(STDOUT, ' 8. First occurence of \'e\' after position 5 ' . $result . PHP_EOL);
87+
fwrite(STDOUT, ' 8. First occurence of "e" after position 5 ' . $result . PHP_EOL);
8888
8989
$result = $builder->lastIndexOf('e');
90-
fwrite(STDOUT, ' 9. Last occurence of \'e\' ' . $result . PHP_EOL);
90+
fwrite(STDOUT, ' 9. Last occurence of "e" ' . $result . PHP_EOL);
9191
9292
$result = $builder->lastIndexOf('e', 5);
93-
fwrite(STDOUT, '10. Last occurence of \'e\' before the 5th last character ' . $result . PHP_EOL);
93+
fwrite(STDOUT, '10. Last occurence of "e" before the 5th last character ' . $result . PHP_EOL);
9494
9595
$result = $builder->contains('ipsum');
96-
fwrite(STDOUT, '12. Whether the string contains \'ipsum\' ' . $result . PHP_EOL);
96+
fwrite(STDOUT, '12. Whether the string contains "ipsum" ' . $result . PHP_EOL);
9797
```
9898

9999
will output the following
100100

101101
```{txt}
102102
5. String length 38
103103
6. Number of bytes 39
104-
7. First occurence of 'e' 4
105-
8. First occurence of 'e' after position 5 8
106-
9. Last occurence of 'e' 37
107-
10. Last occurence of 'e' before the 5th last character 29
108-
12. Whether the string contains 'ipsum' 1
104+
7. First occurence of "e" 4
105+
8. First occurence of "e" after position 5 8
106+
9. Last occurence of "e" 37
107+
10. Last occurence of "e" before the 5th last character 29
108+
12. Whether the string contains "ipsum" 1
109109
```
110110

111111
---

0 commit comments

Comments
 (0)