Created
April 20, 2018 10:05
-
-
Save phpfiddle/a571a4b212a346f5b865d3db2d05bce0 to your computer and use it in GitHub Desktop.
[ Posted by Eupseu@mail.ru ] https://otvet.mail.ru/question/207947711
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
<pre> | |
<?php | |
$var = "семен петрович"; | |
$arr = ['c кавычками'=>'\''.$var."'", 'без кавычек'=>$var, 'второй варииант'=>"'$var'", 'по другому'=>"\"$var\"", 'по другому2'=>'"'.$var.'"', 'жестоко'=>'«'.$var.'»']; | |
print_r($arr); | |
?></pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment