01/04/21 12:52 aTEkxj76
>>13
-- test.php
<?php
$name = "foo";
$sex = "F";
$tel = "090";
$sql = "select * from hoge_tbl where name='$name' and sex = '$sex' and tel = '$tel'";
echo $sql;
?>
--
$ php test.php
select * from hoge_tbl where name='foo' and sex = 'F' and tel = '090'
こちらは問題なく展開されます。
識別子の区切りがわかるから。