summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/strrchr_variation1.phpt
blob: 6b4627383608b5af5a41ddf3643e1e17202bf57b (plain)
ofshex dumpascii
0000 2d 2d 54 45 53 54 2d 2d 0a 54 65 73 74 20 73 74 72 72 63 68 72 28 29 20 66 75 6e 63 74 69 6f 6e --TEST--.Test.strrchr().function
0020 20 3a 20 75 73 61 67 65 20 76 61 72 69 61 74 69 6f 6e 73 20 2d 20 64 6f 75 62 6c 65 20 71 75 6f .:.usage.variations.-.double.quo
0040 74 65 64 20 73 74 72 69 6e 67 73 0a 2d 2d 46 49 4c 45 2d 2d 0a 3c 3f 70 68 70 0a 2f 2a 20 50 72 ted.strings.--FILE--.<?php./*.Pr
0060 6f 74 6f 74 79 70 65 20 20 3a 20 73 74 72 69 6e 67 20 73 74 72 72 63 68 72 28 73 74 72 69 6e 67 ototype..:.string.strrchr(string
0080 20 24 68 61 79 73 74 61 63 6b 2c 20 73 74 72 69 6e 67 20 24 6e 65 65 64 6c 65 29 3b 0a 20 2a 20 .$haystack,.string.$needle);..*.
00a0 44 65 73 63 72 69 70 74 69 6f 6e 3a 20 46 69 6e 64 73 20 74 68 65 20 6c 61 73 74 20 6f 63 63 75 Description:.Finds.the.last.occu
00c0 72 72 65 6e 63 65 20 6f 66 20 61 20 63 68 61 72 61 63 74 65 72 20 69 6e 20 61 20 73 74 72 69 6e rrence.of.a.character.in.a.strin
00e0 67 2e 0a 20 2a 20 53 6f 75 72 63 65 20 63 6f 64 65 3a 20 65 78 74 2f 73 74 61 6e 64 61 72 64 2f g...*.Source.code:.ext/standard/
0100 73 74 72 69 6e 67 2e 63 0a 2a 2f 0a 0a 2f 2a 20 54 65 73 74 20 73 74 72 72 63 68 72 28 29 20 66 string.c.*/../*.Test.strrchr().f
0120 75 6e 63 74 69 6f 6e 20 62 79 20 70 61 73 73 69 6e 67 20 76 61 72 69 6f 75 73 20 64 6f 75 62 6c unction.by.passing.various.doubl
0140 65 20 71 75 6f 74 65 64 20 73 74 72 69 6e 67 73 20 66 6f 72 20 27 68 61 79 73 74 61 63 6b 27 20 e.quoted.strings.for.'haystack'.
0160 26 20 27 6e 65 65 64 6c 65 27 20 2a 2f 0a 0a 65 63 68 6f 20 22 2a 2a 2a 20 54 65 73 74 69 6e 67 &.'needle'.*/..echo."***.Testing
0180 20 73 74 72 72 63 68 72 28 29 20 66 75 6e 63 74 69 6f 6e 3a 20 77 69 74 68 20 76 61 72 69 6f 75 .strrchr().function:.with.variou
01a0 73 20 64 6f 75 62 6c 65 20 71 75 6f 74 65 64 20 73 74 72 69 6e 67 73 20 2a 2a 2a 22 3b 0a 24 68 s.double.quoted.strings.***";.$h
01c0 61 79 73 74 61 63 6b 20 3d 20 22 48 65 6c 6c 6f 2c 5c 74 5c 6e 5c 30 5c 6e 20 20 24 26 21 23 25 aystack.=."Hello,\t\n\0\n..$&!#%
01e0 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 5c \o,()*+-./:;<=>?@hello123456he.\
0200 78 32 33 34 20 5c 31 30 31 20 22 3b 0a 24 6e 65 65 64 6c 65 20 3d 20 61 72 72 61 79 28 0a 20 20 x234.\101.";.$needle.=.array(...
0220 2f 2f 72 65 67 75 6c 61 72 20 73 74 72 69 6e 67 73 0a 20 20 22 6c 22 2c 0a 20 20 22 4c 22 2c 0a //regular.strings..."l",..."L",.
0240 20 20 22 48 45 4c 4c 4f 22 2c 0a 20 20 22 68 45 6c 6c 6f 22 2c 0a 0a 20 20 2f 2f 65 73 63 61 70 .."HELLO",..."hEllo",....//escap
0260 65 20 63 68 61 72 61 63 74 65 72 73 0a 20 20 22 5c 74 22 2c 0a 20 20 22 5c 54 22 2c 0a 20 20 22 e.characters..."\t",..."\T",..."
0280 09 22 2c 0a 20 20 22 5c 6e 22 2c 0a 20 20 22 5c 4e 22 2c 0a 20 20 22 0a 22 2c 20 20 2f 2f 6e 65 .",..."\n",..."\N",...".",..//ne
02a0 77 20 6c 69 6e 65 0a 0a 20 20 2f 2f 6e 75 6c 6c 73 0a 20 20 22 5c 30 22 2c 0a 20 20 4e 55 4c 4c w.line....//nulls..."\0",...NULL
02c0 2c 0a 20 20 6e 75 6c 6c 2c 0a 0a 20 20 2f 2f 62 6f 6f 6c 65 61 6e 20 66 61 6c 73 65 0a 20 20 46 ,...null,....//boolean.false...F
02e0 41 4c 53 45 2c 0a 20 20 66 61 6c 73 65 2c 0a 0a 20 20 2f 2f 65 6d 70 74 79 20 73 74 72 69 6e 67 ALSE,...false,....//empty.string
0300 0a 20 20 22 22 2c 0a 0a 20 20 2f 2f 73 70 65 63 69 61 6c 20 63 68 61 72 73 0a 20 20 22 20 22 2c ..."",....//special.chars...".",
0320 0a 20 20 22 24 22 2c 0a 20 20 22 20 24 22 2c 0a 20 20 22 26 22 2c 0a 20 20 22 21 23 22 2c 0a 20 ..."$",...".$",..."&",..."!#",..
0340 20 22 25 5c 6f 22 2c 0a 20 20 22 5c 6f 2c 22 2c 0a 20 20 22 28 29 22 2c 0a 20 20 22 2a 2b 22 2c ."%\o",..."\o,",..."()",..."*+",
0360 0a 20 20 22 2b 22 2c 0a 20 20 22 2d 22 2c 0a 20 20 22 2e 22 2c 0a 20 20 22 2e 3b 22 2c 0a 20 20 ..."+",..."-",...".",...".;",...
0380 22 3a 3b 22 2c 0a 20 20 22 3b 22 2c 0a 20 20 22 3c 3d 3e 22 2c 0a 20 20 22 3e 22 2c 0a 20 20 22 ":;",...";",..."<=>",...">",..."
03a0 3d 3e 22 2c 0a 20 20 22 3f 22 2c 0a 20 20 22 40 22 2c 0a 20 20 22 40 68 45 6c 6c 6f 22 2c 0a 0a =>",..."?",..."@",..."@hEllo",..
03c0 20 20 22 31 32 33 34 35 22 2c 20 2f 2f 64 65 63 69 6d 61 6c 20 6e 75 6d 65 72 69 63 20 73 74 72 .."12345",.//decimal.numeric.str
03e0 69 6e 67 0a 20 20 22 5c 78 32 33 22 2c 20 20 2f 2f 68 65 78 61 64 65 63 69 6d 61 6c 20 6e 75 6d ing..."\x23",..//hexadecimal.num
0400 65 72 69 63 20 73 74 72 69 6e 67 0a 20 20 22 23 22 2c 20 20 2f 2f 72 65 73 70 65 63 74 69 76 65 eric.string..."#",..//respective
0420 20 41 53 43 49 49 20 63 68 61 72 20 6f 66 20 5c 78 32 33 0a 20 20 22 5c 31 30 31 22 2c 20 20 2f .ASCII.char.of.\x23..."\101",../
0440 2f 6f 63 74 61 6c 20 6e 75 6d 65 72 69 63 20 73 74 72 69 6e 67 0a 20 20 22 41 22 2c 20 20 2f 2f /octal.numeric.string..."A",..//
0460 72 65 73 70 65 63 74 69 76 65 20 41 53 43 49 49 20 63 68 61 72 20 6f 66 20 5c 31 30 31 0a 20 20 respective.ASCII.char.of.\101...
0480 22 34 35 36 48 45 45 22 2c 20 20 2f 2f 6e 75 6d 65 72 69 63 73 20 2b 20 63 68 61 72 73 0a 20 20 "456HEE",..//numerics.+.chars...
04a0 34 32 2c 20 2f 2f 6e 65 65 64 6c 65 20 61 73 20 69 6e 74 28 41 53 43 49 49 20 76 61 6c 75 65 20 42,.//needle.as.int(ASCII.value.
04c0 6f 66 20 22 2a 22 29 0a 20 20 24 68 61 79 73 74 61 63 6b 20 20 2f 2f 68 61 79 73 74 61 63 6b 20 of."*")...$haystack..//haystack.
04e0 61 73 20 6e 65 65 64 6c 65 0a 29 3b 0a 0a 2f 2a 20 6c 6f 6f 70 20 74 68 72 6f 75 67 68 20 74 6f as.needle.);../*.loop.through.to
0500 20 67 65 74 20 74 68 65 20 70 6f 73 69 74 69 6f 6e 20 6f 66 20 74 68 65 20 6e 65 65 64 6c 65 20 .get.the.position.of.the.needle.
0520 69 6e 20 68 61 79 73 74 61 63 6b 20 73 74 72 69 6e 67 20 2a 2f 0a 24 63 6f 75 6e 74 20 3d 20 31 in.haystack.string.*/.$count.=.1
0540 3b 0a 66 6f 72 28 24 69 6e 64 65 78 3d 30 3b 20 24 69 6e 64 65 78 3c 63 6f 75 6e 74 28 24 6e 65 ;.for($index=0;.$index<count($ne
0560 65 64 6c 65 29 3b 20 24 69 6e 64 65 78 2b 2b 29 20 7b 0a 20 20 65 63 68 6f 20 22 5c 6e 2d 2d 20 edle);.$index++).{...echo."\n--.
0580 49 74 65 72 61 74 69 6f 6e 20 24 63 6f 75 6e 74 20 2d 2d 5c 6e 22 3b 0a 20 20 76 61 72 5f 64 75 Iteration.$count.--\n";...var_du
05a0 6d 70 28 20 73 74 72 72 63 68 72 28 24 68 61 79 73 74 61 63 6b 2c 20 24 6e 65 65 64 6c 65 5b 24 mp(.strrchr($haystack,.$needle[$
05c0 69 6e 64 65 78 5d 29 20 29 3b 0a 20 20 24 63 6f 75 6e 74 2b 2b 3b 0a 7d 0a 65 63 68 6f 20 22 2a index]).);...$count++;.}.echo."*
05e0 2a 2a 20 44 6f 6e 65 20 2a 2a 2a 22 3b 0a 3f 3e 0a 2d 2d 45 58 50 45 43 54 46 2d 2d 0a 2a 2a 2a **.Done.***";.?>.--EXPECTF--.***
0600 20 54 65 73 74 69 6e 67 20 73 74 72 72 63 68 72 28 29 20 66 75 6e 63 74 69 6f 6e 3a 20 77 69 74 .Testing.strrchr().function:.wit
0620 68 20 76 61 72 69 6f 75 73 20 64 6f 75 62 6c 65 20 71 75 6f 74 65 64 20 73 74 72 69 6e 67 73 20 h.various.double.quoted.strings.
0640 2a 2a 2a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 31 20 2d 2d 0a 73 74 72 69 6e 67 28 31 36 29 ***.--.Iteration.1.--.string(16)
0660 20 22 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f ."lo123456he.#4.A."..--.Iteratio
0680 6e 20 32 20 2d 2d 0a 62 6f 6f 6c 28 66 61 6c 73 65 29 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e n.2.--.bool(false)..--.Iteration
06a0 20 33 20 2d 2d 0a 73 74 72 69 6e 67 28 35 33 29 20 22 48 65 6c 6c 6f 2c 09 0a 00 0a 20 20 24 26 .3.--.string(53)."Hello,......$&
06c0 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 !#%\o,()*+-./:;<=>?@hello123456h
06e0 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 34 20 2d 2d 0a 73 74 72 69 e.#4.A."..--.Iteration.4.--.stri
0700 6e 67 28 38 29 20 22 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 35 ng(8)."he.#4.A."..--.Iteration.5
0720 20 2d 2d 0a 73 74 72 69 6e 67 28 34 37 29 20 22 09 0a 00 0a 20 20 24 26 21 23 25 5c 6f 2c 28 29 .--.string(47)."......$&!#%\o,()
0740 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 *+-./:;<=>?@hello123456he.#4.A."
0760 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 36 20 2d 2d 0a 73 74 72 69 6e 67 28 33 36 29 20 22 ..--.Iteration.6.--.string(36)."
0780 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 \o,()*+-./:;<=>?@hello123456he.#
07a0 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 37 20 2d 2d 0a 73 74 72 69 6e 67 28 4.A."..--.Iteration.7.--.string(
07c0 34 37 29 20 22 09 0a 00 0a 20 20 24 26 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 47)."......$&!#%\o,()*+-./:;<=>?
07e0 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 @hello123456he.#4.A."..--.Iterat
0800 69 6f 6e 20 38 20 2d 2d 0a 73 74 72 69 6e 67 28 34 34 29 20 22 0a 20 20 24 26 21 23 25 5c 6f 2c ion.8.--.string(44)."...$&!#%\o,
0820 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 ()*+-./:;<=>?@hello123456he.#4.A
0840 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 39 20 2d 2d 0a 73 74 72 69 6e 67 28 33 36 29 ."..--.Iteration.9.--.string(36)
0860 20 22 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 ."\o,()*+-./:;<=>?@hello123456he
0880 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 31 30 20 2d 2d 0a 73 74 72 69 .#4.A."..--.Iteration.10.--.stri
08a0 6e 67 28 34 34 29 20 22 0a 20 20 24 26 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f ng(44)."...$&!#%\o,()*+-./:;<=>?
08c0 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 @hello123456he.#4.A."..--.Iterat
08e0 69 6f 6e 20 31 31 20 2d 2d 0a 73 74 72 69 6e 67 28 34 35 29 20 22 00 0a 20 20 24 26 21 23 25 5c ion.11.--.string(45)."....$&!#%\
0900 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 o,()*+-./:;<=>?@hello123456he.#4
0920 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 31 32 20 2d 2d 0a 0a 44 65 70 72 65 63 .A."..--.Iteration.12.--..Deprec
0940 61 74 65 64 3a 20 73 74 72 72 63 68 72 28 29 3a 20 4e 6f 6e 2d 73 74 72 69 6e 67 20 6e 65 65 64 ated:.strrchr():.Non-string.need
0960 6c 65 73 20 77 69 6c 6c 20 62 65 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 73 74 72 69 6e les.will.be.interpreted.as.strin
0980 67 73 20 69 6e 20 25 73 20 6f 6e 20 6c 69 6e 65 20 25 64 0a 73 74 72 69 6e 67 28 34 35 29 20 22 gs.in.%s.on.line.%d.string(45)."
09a0 00 0a 20 20 24 26 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 ....$&!#%\o,()*+-./:;<=>?@hello1
09c0 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 31 33 20 23456he.#4.A."..--.Iteration.13.
09e0 2d 2d 0a 0a 44 65 70 72 65 63 61 74 65 64 3a 20 73 74 72 72 63 68 72 28 29 3a 20 4e 6f 6e 2d 73 --..Deprecated:.strrchr():.Non-s
0a00 74 72 69 6e 67 20 6e 65 65 64 6c 65 73 20 77 69 6c 6c 20 62 65 20 69 6e 74 65 72 70 72 65 74 65 tring.needles.will.be.interprete
0a20 64 20 61 73 20 73 74 72 69 6e 67 73 20 69 6e 20 25 73 20 6f 6e 20 6c 69 6e 65 20 25 64 0a 73 74 d.as.strings.in.%s.on.line.%d.st
0a40 72 69 6e 67 28 34 35 29 20 22 00 0a 20 20 24 26 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c ring(45)."....$&!#%\o,()*+-./:;<
0a60 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 =>?@hello123456he.#4.A."..--.Ite
0a80 72 61 74 69 6f 6e 20 31 34 20 2d 2d 0a 0a 44 65 70 72 65 63 61 74 65 64 3a 20 73 74 72 72 63 68 ration.14.--..Deprecated:.strrch
0aa0 72 28 29 3a 20 4e 6f 6e 2d 73 74 72 69 6e 67 20 6e 65 65 64 6c 65 73 20 77 69 6c 6c 20 62 65 20 r():.Non-string.needles.will.be.
0ac0 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 73 74 72 69 6e 67 73 20 69 6e 20 25 73 20 6f 6e 20 interpreted.as.strings.in.%s.on.
0ae0 6c 69 6e 65 20 25 64 0a 73 74 72 69 6e 67 28 34 35 29 20 22 00 0a 20 20 24 26 21 23 25 5c 6f 2c line.%d.string(45)."....$&!#%\o,
0b00 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 ()*+-./:;<=>?@hello123456he.#4.A
0b20 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 31 35 20 2d 2d 0a 0a 44 65 70 72 65 63 61 74 ."..--.Iteration.15.--..Deprecat
0b40 65 64 3a 20 73 74 72 72 63 68 72 28 29 3a 20 4e 6f 6e 2d 73 74 72 69 6e 67 20 6e 65 65 64 6c 65 ed:.strrchr():.Non-string.needle
0b60 73 20 77 69 6c 6c 20 62 65 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 73 74 72 69 6e 67 73 s.will.be.interpreted.as.strings
0b80 20 69 6e 20 25 73 20 6f 6e 20 6c 69 6e 65 20 25 64 0a 73 74 72 69 6e 67 28 34 35 29 20 22 00 0a .in.%s.on.line.%d.string(45)."..
0ba0 20 20 24 26 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 ..$&!#%\o,()*+-./:;<=>?@hello123
0bc0 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 31 36 20 2d 2d 456he.#4.A."..--.Iteration.16.--
0be0 0a 73 74 72 69 6e 67 28 34 35 29 20 22 00 0a 20 20 24 26 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f .string(45)."....$&!#%\o,()*+-./
0c00 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 :;<=>?@hello123456he.#4.A."..--.
0c20 49 74 65 72 61 74 69 6f 6e 20 31 37 20 2d 2d 0a 73 74 72 69 6e 67 28 31 29 20 22 20 22 0a 0a 2d Iteration.17.--.string(1)."."..-
0c40 2d 20 49 74 65 72 61 74 69 6f 6e 20 31 38 20 2d 2d 0a 73 74 72 69 6e 67 28 34 31 29 20 22 24 26 -.Iteration.18.--.string(41)."$&
0c60 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 !#%\o,()*+-./:;<=>?@hello123456h
0c80 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 31 39 20 2d 2d 0a 73 74 72 e.#4.A."..--.Iteration.19.--.str
0ca0 69 6e 67 28 31 29 20 22 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 30 20 2d 2d 0a 73 ing(1)."."..--.Iteration.20.--.s
0cc0 74 72 69 6e 67 28 34 30 29 20 22 26 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 tring(40)."&!#%\o,()*+-./:;<=>?@
0ce0 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 hello123456he.#4.A."..--.Iterati
0d00 6f 6e 20 32 31 20 2d 2d 0a 73 74 72 69 6e 67 28 33 39 29 20 22 21 23 25 5c 6f 2c 28 29 2a 2b 2d on.21.--.string(39)."!#%\o,()*+-
0d20 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d ./:;<=>?@hello123456he.#4.A."..-
0d40 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 32 20 2d 2d 0a 73 74 72 69 6e 67 28 33 37 29 20 22 25 5c -.Iteration.22.--.string(37)."%\
0d60 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 o,()*+-./:;<=>?@hello123456he.#4
0d80 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 33 20 2d 2d 0a 73 74 72 69 6e 67 28 .A."..--.Iteration.23.--.string(
0da0 33 36 29 20 22 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36)."\o,()*+-./:;<=>?@hello12345
0dc0 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 34 20 2d 2d 0a 73 6he.#4.A."..--.Iteration.24.--.s
0de0 74 72 69 6e 67 28 33 33 29 20 22 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 tring(33)."()*+-./:;<=>?@hello12
0e00 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 35 20 2d 3456he.#4.A."..--.Iteration.25.-
0e20 2d 0a 73 74 72 69 6e 67 28 33 31 29 20 22 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 -.string(31)."*+-./:;<=>?@hello1
0e40 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 36 20 23456he.#4.A."..--.Iteration.26.
0e60 2d 2d 0a 73 74 72 69 6e 67 28 33 30 29 20 22 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 --.string(30)."+-./:;<=>?@hello1
0e80 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 37 20 23456he.#4.A."..--.Iteration.27.
0ea0 2d 2d 0a 73 74 72 69 6e 67 28 32 39 29 20 22 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 --.string(29)."-./:;<=>?@hello12
0ec0 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 38 20 2d 3456he.#4.A."..--.Iteration.28.-
0ee0 2d 0a 73 74 72 69 6e 67 28 32 38 29 20 22 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 -.string(28)."./:;<=>?@hello1234
0f00 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 32 39 20 2d 2d 0a 56he.#4.A."..--.Iteration.29.--.
0f20 73 74 72 69 6e 67 28 32 38 29 20 22 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 string(28)."./:;<=>?@hello123456
0f40 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 33 30 20 2d 2d 0a 73 74 he.#4.A."..--.Iteration.30.--.st
0f60 72 69 6e 67 28 32 36 29 20 22 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 ring(26).":;<=>?@hello123456he.#
0f80 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 33 31 20 2d 2d 0a 73 74 72 69 6e 67 4.A."..--.Iteration.31.--.string
0fa0 28 32 35 29 20 22 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 (25).";<=>?@hello123456he.#4.A."
0fc0 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 33 32 20 2d 2d 0a 73 74 72 69 6e 67 28 32 34 29 20 ..--.Iteration.32.--.string(24).
0fe0 22 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 "<=>?@hello123456he.#4.A."..--.I
1000 74 65 72 61 74 69 6f 6e 20 33 33 20 2d 2d 0a 73 74 72 69 6e 67 28 32 32 29 20 22 3e 3f 40 68 65 teration.33.--.string(22).">?@he
1020 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e llo123456he.#4.A."..--.Iteration
1040 20 33 34 20 2d 2d 0a 73 74 72 69 6e 67 28 32 33 29 20 22 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 .34.--.string(23)."=>?@hello1234
1060 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 33 35 20 2d 2d 0a 56he.#4.A."..--.Iteration.35.--.
1080 73 74 72 69 6e 67 28 32 31 29 20 22 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 string(21)."?@hello123456he.#4.A
10a0 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 33 36 20 2d 2d 0a 73 74 72 69 6e 67 28 32 30 ."..--.Iteration.36.--.string(20
10c0 29 20 22 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 )."@hello123456he.#4.A."..--.Ite
10e0 72 61 74 69 6f 6e 20 33 37 20 2d 2d 0a 73 74 72 69 6e 67 28 32 30 29 20 22 40 68 65 6c 6c 6f 31 ration.37.--.string(20)."@hello1
1100 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 33 38 20 23456he.#4.A."..--.Iteration.38.
1120 2d 2d 0a 73 74 72 69 6e 67 28 31 34 29 20 22 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a --.string(14)."123456he.#4.A."..
1140 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 33 39 20 2d 2d 0a 73 74 72 69 6e 67 28 35 29 20 22 23 34 --.Iteration.39.--.string(5)."#4
1160 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 34 30 20 2d 2d 0a 73 74 72 69 6e 67 28 .A."..--.Iteration.40.--.string(
1180 35 29 20 22 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 34 31 20 2d 2d 0a 73 5)."#4.A."..--.Iteration.41.--.s
11a0 74 72 69 6e 67 28 32 29 20 22 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 34 32 20 2d tring(2)."A."..--.Iteration.42.-
11c0 2d 0a 73 74 72 69 6e 67 28 32 29 20 22 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 34 -.string(2)."A."..--.Iteration.4
11e0 33 20 2d 2d 0a 73 74 72 69 6e 67 28 34 29 20 22 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 3.--.string(4)."4.A."..--.Iterat
1200 69 6f 6e 20 34 34 20 2d 2d 0a 0a 44 65 70 72 65 63 61 74 65 64 3a 20 73 74 72 72 63 68 72 28 29 ion.44.--..Deprecated:.strrchr()
1220 3a 20 4e 6f 6e 2d 73 74 72 69 6e 67 20 6e 65 65 64 6c 65 73 20 77 69 6c 6c 20 62 65 20 69 6e 74 :.Non-string.needles.will.be.int
1240 65 72 70 72 65 74 65 64 20 61 73 20 73 74 72 69 6e 67 73 20 69 6e 20 25 73 20 6f 6e 20 6c 69 6e erpreted.as.strings.in.%s.on.lin
1260 65 20 25 64 0a 73 74 72 69 6e 67 28 33 31 29 20 22 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c e.%d.string(31)."*+-./:;<=>?@hel
1280 6c 6f 31 32 33 34 35 36 68 65 20 23 34 20 41 20 22 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 lo123456he.#4.A."..--.Iteration.
12a0 34 35 20 2d 2d 0a 73 74 72 69 6e 67 28 35 33 29 20 22 48 65 6c 6c 6f 2c 09 0a 00 0a 20 20 24 26 45.--.string(53)."Hello,......$&
12c0 21 23 25 5c 6f 2c 28 29 2a 2b 2d 2e 2f 3a 3b 3c 3d 3e 3f 40 68 65 6c 6c 6f 31 32 33 34 35 36 68 !#%\o,()*+-./:;<=>?@hello123456h
12e0 65 20 23 34 20 41 20 22 0a 2a 2a 2a 20 44 6f 6e 65 20 2a 2a 2a e.#4.A.".***.Done.***