no message
This commit is contained in:
12
Question01-StartProgram/Ex08.php
Normal file
12
Question01-StartProgram/Ex08.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
// 文字列のエスケープに関する問題
|
||||
|
||||
// シングルクォート内で「I'm learning PHP!」を正しく表現
|
||||
$singleQuoteString = 'I\'m learning PHP!';
|
||||
|
||||
// ダブルクォート内で「He said, "PHP is fun!"」を正しく表現
|
||||
$doubleQuoteString = "He said, \"PHP is fun!\"";
|
||||
|
||||
// 変数を表示
|
||||
echo $singleQuoteString . "<br>";
|
||||
echo $doubleQuoteString . "<br>";
|
||||
Reference in New Issue
Block a user