"PHP 문자열 큰따옴표"의 두 판 사이의 차이

(새 문서: ==개요== ;PHP Strings - double quoted ;PHP 문자열 큰따옴표 <syntaxhighlight lang='php' run> $name = "Alice"; echo "hello $name"; </syntaxhighlight> ==같이 보기== * PH...)
 
6번째 줄: 6번째 줄:
$name = "Alice";
$name = "Alice";
echo "hello $name";
echo "hello $name";
</syntaxhighlight>
<syntaxhighlight lang='php' run>
$name = "Alice";
echo "hello {$name}";
</syntaxhighlight>
<syntaxhighlight lang='php' run>
$names = ["Alice", "Bob"];
echo "hello {$names[0]} {$names[1]}";
</syntaxhighlight>
</syntaxhighlight>



2023년 11월 7일 (화) 01:03 판

1 개요

PHP Strings - double quoted
PHP 문자열 큰따옴표
$name = "Alice";
echo "hello $name";
$name = "Alice";
echo "hello {$name}";
$names = ["Alice", "Bob"];
echo "hello {$names[0]} {$names[1]}";

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}