How to declare a string with double quote substrings in PHP

1 Answer

0 votes
$str = 'This is a string with "double-quoted substring1", and "double-quoted substring2" inside.';

echo $str;



/*
run:

This is a string with "double-quoted substring1", and "double-quoted substring2" inside.

*/

 



answered May 12, 2025 by avibootz
edited May 12, 2025 by avibootz
...