xref: /PHP-8.0/Zend/tests/005.phpt (revision 5dafd7b4)
1--TEST--
2strcasecmp() tests
3--FILE--
4<?php
5
6var_dump(strcasecmp("", ""));
7var_dump(strcasecmp("aef", "dfsgbdf"));
8var_dump(strcasecmp("qwe", "qwer"));
9var_dump(strcasecmp("qwerty", "QweRty"));
10var_dump(strcasecmp("qwErtY", "qwerty"));
11var_dump(strcasecmp("q123", "Q123"));
12var_dump(strcasecmp("01", "01"));
13
14echo "Done\n";
15?>
16--EXPECT--
17int(0)
18int(-3)
19int(-1)
20int(0)
21int(0)
22int(0)
23int(0)
24Done
25