Many articles say that double quotes are bad. Does it mean that it's recomended to use single quotes always and not even in "echo"?
CASE 1
echo 'Something';
Here I should use single quotes.
=============================
CASE 2
$tnow = date('Y-m-d H:i:s', $timestamp);
$tnow = date("Y-m-d H:i:s", $timestamp);
Single quotes or double quotes? Both of them work.
=============================
CASE 3
$do = preg_replace('/[^a-z]/', '', $do);
$do = preg_replace("/[^a-z]/", "", $do);
Single quotes or double quotes? Both of them work.
=============================
CASE 4
if(!isset($delete)) $delete='no';
if(!isset($delete)) $delete="no";
Single quotes or double quotes? Both of them work.
=============================
CASE 5
$howm=mysql_num_rows($check);
if ($howm == '1') {}
$howm=mysql_num_rows($check);
if ($howm == "1") {}
$howm=mysql_num_rows($check);
if ($howm == 1) {}
Single quotes or double quotes or no quotes?
=============================
CASE 6
if ($limit > 95) {}
if ($limit > "95") {}
if ($limit > '95') {}
Single quotes or double quotes or no quotes?
=============================
CASE 7
if ($start == "0") {}
if ($start == '0') {}
Single quotes or double quotes? Both of them work.
=============================
Thanks.