@@ -81,31 +81,31 @@ $result = $builder->size();
81
81
fwrite(STDOUT, ' 6. Number of bytes ' . $result . PHP_EOL);
82
82
83
83
$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);
85
85
86
86
$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);
88
88
89
89
$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);
91
91
92
92
$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);
94
94
95
95
$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);
97
97
```
98
98
99
99
will output the following
100
100
101
101
``` {txt}
102
102
5. String length 38
103
103
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
109
109
```
110
110
111
111
---
0 commit comments