[lang-ref] ( escape_and_quote ) ( php )
<?php
public function testEscapeAndQuote(): void
{
// \, ', "
$e = 'It\'s "OK".';
$a1 = "It's \"OK\".";
$a2 = <<<EOT
It's "OK".
EOT;
$this->assertSame($e, $a1);
$this->assertSame($e, $a2);
}
<?php
public function testEscapeAndQuote(): void
{
// \, ', "
$e = 'It\'s "OK".';
$a1 = "It's \"OK\".";
$a2 = <<<EOT
It's "OK".
EOT;
$this->assertSame($e, $a1);
$this->assertSame($e, $a2);
}