I am wondering the difference between the single quotes:
$this->db->select('card_code, card_color');
Versus the double quotes:
$this->db->select("card_code, card_color");
I know if I use double quotes I can place variables in the string, like so:
$this->db->select("$card_code_var, $card_color_var");
While with single quotes this does not work. And also when using it in in english or other spoken languages there can be occasions where I need to use apostrophe like here
$this->setPhrase("The cat's tail is black");
And up to here I get it.
I see on the web many official guides and documentation where they use single quotes for strings. Shouldn't be single quotes used for single characters and double quotes for strings?
$var_char = 'A';
$var_string = "A fox";
Does programmatically change something if I use a single quotes (like in the very first code above) rather than double quotes?