タイトル: エスケープ文字
文字列内で ‘ や “ を使用したい場合の対処法。
‘ や ” の前に \ (バックスラッシュ)を置く。
【例】
print 'エスケープ文字検証
';
print 'It\'s a small land
';
?>
IT総合Wiki
文字列内で ‘ や “ を使用したい場合の対処法。
‘ や ” の前に \ (バックスラッシュ)を置く。
【例】
print 'エスケープ文字検証
';
print 'It\'s a small land
';
?>