Skip to content

Commit 558516d

Browse files
Fix example comment for zend_string_equals_literal_ci (#153)
1 parent 93565da commit 558516d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Book/php7/internal_types/strings/zend_strings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ The ``zend_string`` API supports a few additional operations. The most common on
204204
// Case-sensitive comparison with a string literal.
205205
bool result = zend_string_equals_literal(foo, "FOO"); // false
206206
// Case-insensitive comparison with a string literal.
207-
bool result = zend_string_equals_literal_ci(foo, "FOO"); // false
207+
bool result = zend_string_equals_literal_ci(foo, "FOO"); // true
208208

209209
zend_string_release(foo);
210210
zend_string_release(FOO);

0 commit comments

Comments
 (0)