string(1) "\"
["controls"]=>
string(5) "\b\f
-
- "
+\r "
["slash"]=>
string(5) "/ & /"
["alpha"]=>
["quotes"]=>
string(27) "" " %22 0x22 034 ""
["/\"쫾몾ꮘﳞ볚\b\f
-
- `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
+\r `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
string(23) "A key can be any string"
}
[9]=>
string(1) "\"
["controls"]=>
string(5) "\b\f
-
- "
+\r "
["slash"]=>
string(5) "/ & /"
["alpha"]=>
["quotes"]=>
string(27) "" " %22 0x22 034 ""
["/\"쫾몾ꮘﳞ볚\b\f
-
- `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
+\r `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
string(23) "A key can be any string"
}
[9]=>
string(1) "\"
["controls"]=>
string(5) "\b\f
-
- "
+\r "
["slash"]=>
string(5) "/ & /"
["alpha"]=>
["quotes"]=>
string(27) "" " %22 0x22 034 ""
["/\"쫾몾ꮘﳞ볚\b\f
-
- `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
+\r `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
string(23) "A key can be any string"
}
[9]=>
string(1) "\"
["controls"]=>
string(5) "\b\f
-
- "
+\r "
["slash"]=>
string(5) "/ & /"
["alpha"]=>
["quotes"]=>
string(27) "" " %22 0x22 034 ""
["/\"쫾몾ꮘﳞ볚\b\f
-
- `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
+\r `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
string(23) "A key can be any string"
}
[9]=>
string(1) "\"
["controls"]=>
string(5) "\b\f
-
- "
+\r "
["slash"]=>
string(5) "/ & /"
["alpha"]=>
["quotes"]=>
string(27) "" " %22 0x22 034 ""
["/\"쫾몾ꮘﳞ볚\b\f
-
- `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
+\r `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
string(23) "A key can be any string"
}
[9]=>
string(1) "\"
["controls"]=>
string(5) "\b\f
-
- "
+\r "
["slash"]=>
string(5) "/ & /"
["alpha"]=>
["quotes"]=>
string(27) "" " %22 0x22 034 ""
["/\"쫾몾ꮘﳞ볚\b\f
-
- `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
+\r `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
string(23) "A key can be any string"
}
[9]=>
string(1) "\"
["controls"]=>
string(5) "\b\f
-
- "
+\r "
["slash"]=>
string(5) "/ & /"
["alpha"]=>
["quotes"]=>
string(27) "" " %22 0x22 034 ""
["/\"쫾몾ꮘﳞ볚\b\f
-
- `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
+\r `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
string(23) "A key can be any string"
}
[9]=>
string(1) "\"
["controls"]=>
string(5) "\b\f
-
- "
+\r "
["slash"]=>
string(5) "/ & /"
["alpha"]=>
["quotes"]=>
string(27) "" " %22 0x22 034 ""
["/\"쫾몾ꮘﳞ볚\b\f
-
- `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
+\r `1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
string(23) "A key can be any string"
}
[9]=>
array(6) {
["a\v\f"]=>
string(3) "a\v\f"
- ["aaaa
-"]=>
- string(5) "aaaa
-"
+ ["aaaa\r"]=>
+ string(5) "aaaa\r"
["b"]=>
string(1) "b"
["b bbb"]=>
The quick brown fox jumped over;
the lazy dog
This is a double quoted string"
- ["hello
- world
+ ["hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
-- Iteration 8 --
array(1) {
["h3"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
}
array(1) {
["h3"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
-- Iteration 8 --
array(1) {
["h3"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
}
array(1) {
["h3"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
-- Iterator 6 --
array(1) {
[1]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
}
array(1) {
[1]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
}
-- Iterator 7 --
array(1) {
-- Iterator 8 --
array(2) {
[2]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
}
array(2) {
[2]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
-- Iteration 6 --
array(1) {
[10]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
}
array(1) {
[10]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
}
-- Iteration 7 --
array(1) {
2222 != 1111. 0000 = 0000
"
[12]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
2222 != 1111. 0000 = 0000
"
[12]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
[0]=>
string(3) "a\v\f"
[1]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
[2]=>
string(1) "b"
[3]=>
[0]=>
string(3) "a\v\f"
[1]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
[2]=>
string(1) "b"
[3]=>
the lazy dog
This is a double quoted string"
["h3"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
the lazy dog
This is a double quoted string"
["h3"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
[1]=>
int(2)
[2]=>
- string(25) "\v\fHello world!!
-string
+ string(25) "\v\fHello world!! \rstring
"
[3]=>
- string(25) "\v\fHello world!!
-string
+ string(25) "\v\fHello world!! \rstring
"
}
array(4) {
[0]=>
- string(25) "\v\fHello world!!
-string
+ string(25) "\v\fHello world!! \rstring
"
[1]=>
- string(25) "\v\fHello world!!
-string
+ string(25) "\v\fHello world!! \rstring
"
[2]=>
int(1)
[0]=>
string(3) "a\v\f"
[1]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
[2]=>
string(5) "b bbb"
[3]=>
[2]=>
string(3) "a\v\f"
[3]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
[4]=>
string(5) "b bbb"
[5]=>
the lazy dog
This is a double quoted string"
["h3"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
the lazy dog
This is a double quoted string"
["h3"]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
[0]=>
string(3) "a\v\f"
[1]=>
- string(5) "aaaa
-"
+ string(5) "aaaa\r"
[2]=>
string(1) "b"
[4]=>
the lazy dog
This is a double quoted string"
["h3"]=>
- string(87) "hello
- world
+ string(87) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
int(5)
array(5) {
[0]=>
- string(49) "
-\v The quick brown fo\fx jumped over the lazy dog"
+ string(49) " \r\v The quick brown fo\fx jumped over the lazy dog"
["f"]=>
string(5) "first"
["s"]=>
int(7)
array(7) {
[0]=>
- string(49) "
-\v The quick brown fo\fx jumped over the lazy dog"
+ string(49) " \r\v The quick brown fo\fx jumped over the lazy dog"
[1]=>
string(5) "hello"
[2]=>
int(5)
array(5) {
[0]=>
- string(70) "This is a text in bold letters
-\s\malong with slashes
+ string(70) "This is a text in bold letters\r\s\malong with slashes
: HELLO WORLD "
["f"]=>
string(5) "first"
int(7)
array(7) {
[0]=>
- string(70) "This is a text in bold letters
-\s\malong with slashes
+ string(70) "This is a text in bold letters\r\s\malong with slashes
: HELLO WORLD "
[1]=>
string(5) "hello"
int(5)
array(5) {
[0]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
int(7)
array(7) {
[0]=>
- string(88) "hello
- world
+ string(88) "hello\r world
1111 != 2222\v\v
heredoc
double quoted string. with\vdifferent\fwhite\vspaces"
string(3) "\cx"
["\a"]=>
string(2) "\a"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\f"]=>
string(1) "\f"
["\v"]=>
string(3) "\cx"
["\a"]=>
string(2) "\a"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\f"]=>
string(1) "\f"
["\v"]=>
string(3) "\cx"
["\a"]=>
string(2) "\a"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\f"]=>
string(1) "\f"
["\v"]=>
string(1) "\v"
["\f"]=>
string(1) "\f"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\a"]=>
string(2) "\a"
["\cx"]=>
string(1) "\v"
["\f"]=>
string(1) "\f"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\a"]=>
string(2) "\a"
["\cx"]=>
string(1) "\v"
["\f"]=>
string(1) "\f"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\a"]=>
string(2) "\a"
["\cx"]=>
string(3) "\cx"
["\a"]=>
string(2) "\a"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\f"]=>
string(1) "\f"
["\v"]=>
string(3) "\cx"
["\a"]=>
string(2) "\a"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\f"]=>
string(1) "\f"
["\v"]=>
string(3) "\cx"
["\a"]=>
string(2) "\a"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\f"]=>
string(1) "\f"
["\v"]=>
string(1) "\v"
["\f"]=>
string(1) "\f"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\a"]=>
string(2) "\a"
["\cx"]=>
string(1) "\v"
["\f"]=>
string(1) "\f"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\a"]=>
string(2) "\a"
["\cx"]=>
string(1) "\v"
["\f"]=>
string(1) "\f"
- ["
-"]=>
- string(1) "
-"
+ ["\r"]=>
+ string(1) "\r"
["\a"]=>
string(2) "\a"
["\cx"]=>
[5]=>
string(1) "\f"
[6]=>
- string(1) "
-"
+ string(1) "\r"
[7]=>
string(2) "\a"
[8]=>
[5]=>
string(1) "\f"
[6]=>
- string(1) "
-"
+ string(1) "\r"
[7]=>
string(2) "\a"
[8]=>
[5]=>
string(1) "\f"
[6]=>
- string(1) "
-"
+ string(1) "\r"
[7]=>
string(2) "\a"
[8]=>
Array
(
[0] =>
-
-this is an test
+\rthis is an test
[1] => next data
[2] => p
-
-arsed
+\rarsed
)
int(342)
bool(false)
-- Line 8 --
-string(41) "this is the text containing
- character
+string(41) "this is the text containing \r character
"
int(383)
bool(false)
int(342)
bool(false)
-- Line 8 --
-string(41) "this is the text containing
- character
+string(41) "this is the text containing \r character
"
int(383)
bool(false)
int(342)
bool(false)
-- Line 8 --
-string(41) "this is the text containing
- character
+string(41) "this is the text containing \r character
"
int(383)
bool(false)
int(342)
bool(false)
-- Line 8 --
-string(41) "this is the text containing
- character
+string(41) "this is the text containing \r character
"
int(383)
bool(false)
int(342)
bool(false)
-- Line 8 --
-string(41) "this is the text containing
- character
+string(41) "this is the text containing \r character
"
int(383)
bool(false)
int(342)
bool(false)
-- Line 8 --
-string(41) "this is the text containing
- character
+string(41) "this is the text containing \r character
"
int(383)
bool(false)
-- Iteration 14 --
1234
5678
- 9100
-abcda
+ 9100\rabcda
1234
5678
- 9100
-abcda
+ 9100\rabcda
1234
5678
- 9100
-abcda
+ 9100\rabcda
*** Testing print_r() on boolean variables ***
-- Iteration 1 --
-- Iteration 14 --
string(22) "1234
5678
- 9100
-abcda"
+ 9100\rabcda"
*** Testing var_dump() on boolean variables ***
-- Iteration 1 --
[13]=>
string(22) "1234
5678
- 9100
-abcda"
+ 9100\rabcda"
}
array(15) {
[0]=>
1111 & 0000 = 0000
"This is a double quoted string""
-- Iteration 4 --
-string(130) "<html>Roy's height
- > Sam 's height
+string(130) "<html>Roy's height\r > Sam 's height
1111 & 0000\v\v = \f0000
" heredoc
double quoted string. with\vdifferent\fwhite\vspaces""
string(84) "Roy's height > Sam's $height... 1111 ≈ 0000 = 0000... " double quote string ""
-- Iteration 2 --
string(82) "Roy's height > Sam's height... 13 < 15...
-
- " double quote\f\v string ""
+\r " double quote\f\v string ""
string(82) "Roy's height > Sam's height... 13 < 15...
-
- " double quote\f\v string ""
+\r " double quote\f\v string ""
string(92) "Roy's height > Sam's height... 13 < 15...
-
- " double quote\f\v string ""
+\r " double quote\f\v string ""
string(72) "Roy's height > Sam's height... 13 < 15...
-
- " double quote\f\v string ""
+\r " double quote\f\v string ""
-- Iteration 3 --
string(44) "
Roy's height > ; Sam's\v height\f"
string(34) "
Roy's height > ; Sam's\v height\f"
-- Iteration 4 --
-string(44) "
- Roy's height >
-; Sam 's height"
-string(44) "
- Roy's height >
-; Sam 's height"
-string(44) "
- Roy's height >
-; Sam 's height"
-string(34) "
- Roy's height >
-; Sam 's height"
+string(44) "\r Roy's height >\r; Sam 's height"
+string(44) "\r Roy's height >\r; Sam 's height"
+string(44) "\r Roy's height >\r; Sam 's height"
+string(34) "\r Roy's height >\r; Sam 's height"
-- Iteration 5 --
string(30) "
1 3 & gt; 11 but 11 & lt; 12"
"
string(7) "<br />
"
-string(7) "<br />
-"
+string(7) "<br />\r"
string(8) "<br />
-
-"
+\r"
string(44) "<br />
-
-<br />
-<br />
-<br />
-<br />
-<br />
-"
+\r<br />
+<br />\r<br />\r<br />\r<br />\r"
string(47) "<br />
-
-<br />
-<br />
-
-<br />
-
+\r<br />
<br />
+\r<br />
+\r<br />
<br />
"
string(66) "<br />
-
-<br />
-<br />
+\r<br />
<br />
<br />
-
<br />
-<br />
-<br />
-<br />
-"
+\r<br />\r<br />\r<br />
+<br />\r"
World<br />
"
-- Iteration 3 --
-string(17) "Hello<br />
-World"
+string(17) "Hello<br />\rWorld"
-- Iteration 4 --
-string(31) "<br />
-Hello<br />
-World<br />
-"
+string(31) "<br />\rHello<br />\rWorld<br />\r"
-- Iteration 5 --
string(18) "Hello<br />
World"
*** Testing nl2br() : usage variations ***
string(147) "<br />
<br />
-
-<br />
-
-<br />
+\r<br />
+\r<br />
<br />
<br />
nn<br />
<br />
<br />
n<br />
-
-rr<br />
-<br />
-<br />
-r<br />
-<br />
-
-<br />
-
+\rrr<br />\r<br />\r<br />\rr<br />
<br />
+\r<br />
+\r<br />
<br />
-r<br />
-n"
+r<br />\rn"
string(118) "Hello<br />
World<br />
This is es for <br />
ew lines<br />
like <br />
<br />
- <br />
- <br />
-
- and etc"
+ <br />\r <br />
+\r and etc"
Done
string(19) "<html><br /></html>"
string(45) "<html><br />
Hello<br />
-world<br />
-</html>"
+world<br />\r</html>"
string(37) "<html><br />
<br />
- <br />
-</html>"
+ <br />\r</html>"
Done
string(10) "it()
Escap"
[3]=>
- string(7) "e
-chars"
+ string(7) "e\rchars"
}
-- Iteration 8 --
array(8) {
This is a double quoted string"
-- Iteration 4 --
-string(44) "<html>hello
- world
+string(44) "<html>hello\r world
1111 != 2222\v\v</html>
"
-- Iteration 5 --
-- Iteration 1 --
string(50) "<html> $ -> This represents the dollar sign</html>"
-- Iteration 2 --
-string(59) "<html>
-\v The quick brown fo\fx jumped over the lazy dog</p>"
+string(59) "<html> \r\v The quick brown fo\fx jumped over the lazy dog</p>"
-- Iteration 3 --
string(31) "<a>This is a hyper text tag</a>"
-- Iteration 4 --
-- Iteration 5 --
string(26) "<p>This is a paragraph</p>"
-- Iteration 6 --
-string(62) "<b>This is a text in bold letters
-\s\malong with slashes
+string(62) "<b>This is a text in bold letters\r\s\malong with slashes
</b>"
Done
?>
--EXPECTF--
*** Testing strrchr() function: with heredoc strings ***
-string(33) " st
-
-ch
- using
+string(33) " st\r\rch\r using
\escape \seque
ce"
string(9) "\seque
ce"
-string(25) "
- using
+string(25) "\r using
\escape \seque
ce"
string(9) "\seque
ce"
-string(33) " st
-
-ch
- using
+string(33) " st\r\rch\r using
\escape \seque
ce"
*** Done ***
*** Testing strtr() : string containing escape sequences for 'str' arg ***
-- Iteration 1 --
string(9) "SesSTsttE"
-string(9) " es \stt
-"
+string(9) " es \stt\r"
-- Iteration 2 --
string(12) "TtestTTstrtr"
string(12) "\test\\strtr"
-- Iteration 15 --
string(16) "Testing\rucwords"
-- Iteration 16 --
-string(15) "Testing
-Ucwords"
+string(15) "Testing\rUcwords"
-- Iteration 17 --
string(16) "Testing\fucwords"
-- Iteration 18 --
Multiline String Using
Heredoc"
-- Iteration 4 --
-string(93) "Testing
-Ucword(str) With
+string(93) "Testing\rUcword(str) With
Multiline String Using
Heredoc
String.with\vDifferent\fWhite\vSpaces"
-- Iteration 5 --
string(53) "12sting 123string 4567
-String 123string
-12 Test
+String 123string\r12 Test
5test"
-- Iteration 6 --
string(108) "It's Bright,but I Cann't See It.
-- Iteration 13 --
string(26) "\ttesting\ttesting Ucwords"
-- Iteration 14 --
-string(31) "Testing
-Ucwords Testing Ucwords"
+string(31) "Testing\rUcwords Testing Ucwords"
-- Iteration 15 --
string(32) "Testing\rucwords Testing Ucwords"
-- Iteration 16 --