1--TEST--
2Test ++N operator : various numbers as strings
3--FILE--
4<?php
5
6$strVals = array(
7    "0","65","-44", "1.2", "-7.7",
8    "abc", "123abc", "123e5", "123e5xyz", " 123abc", "123 abc", "123abc ", "3.4a", "a5.9",
9    "z", "az", "zz", "Z", "AZ", "ZZ", "9z", "19z", "99z",
10);
11
12
13foreach ($strVals as $strVal) {
14    echo "--- testing: '$strVal' ---\n";
15    var_dump(++$strVal);
16}
17
18?>
19===DONE===
20--EXPECT--
21--- testing: '0' ---
22int(1)
23--- testing: '65' ---
24int(66)
25--- testing: '-44' ---
26int(-43)
27--- testing: '1.2' ---
28float(2.2)
29--- testing: '-7.7' ---
30float(-6.7)
31--- testing: 'abc' ---
32string(3) "abd"
33--- testing: '123abc' ---
34string(6) "123abd"
35--- testing: '123e5' ---
36float(12300001)
37--- testing: '123e5xyz' ---
38string(8) "123e5xza"
39--- testing: ' 123abc' ---
40string(7) " 123abd"
41--- testing: '123 abc' ---
42string(7) "123 abd"
43--- testing: '123abc ' ---
44string(7) "123abc "
45--- testing: '3.4a' ---
46string(4) "3.4b"
47--- testing: 'a5.9' ---
48string(4) "a5.0"
49--- testing: 'z' ---
50string(2) "aa"
51--- testing: 'az' ---
52string(2) "ba"
53--- testing: 'zz' ---
54string(3) "aaa"
55--- testing: 'Z' ---
56string(2) "AA"
57--- testing: 'AZ' ---
58string(2) "BA"
59--- testing: 'ZZ' ---
60string(3) "AAA"
61--- testing: '9z' ---
62string(3) "10a"
63--- testing: '19z' ---
64string(3) "20a"
65--- testing: '99z' ---
66string(4) "100a"
67===DONE===
68