Last active
November 10, 2015 16:58
-
-
Save jancimajek/7d16d2beb5832c903677 to your computer and use it in GitHub Desktop.
PHP Storm 10 quote escaping when copy&paste
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$test = "Copy from here -->" . $foo . "<-- to here and pasting will escape the quotes -->\" . $foo . \"<--"; | |
$test = 'Copy from here -->' . $foo . '<-- to here and pasting will escape the quotes -->\' . $foo . \'<--'; | |
$test = " | |
lorem ipsum | |
" . $foo . " // copy this line | |
\" . $foo . \" // the quotes get escaped on pasting | |
"; | |
$test = ' | |
lorem ipsum | |
' . $foo . ' // copy this line | |
\' . $foo . \' // the single-quotes get escaped on pasting | |
'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment