sometimes is simple using double
sometimes is better using single
sometimes mixed: double/single or single/double
For a beginner.
What is most simple of these?
// first way
echo "the width is $width and height is $height pixels";
//second way
echo 'the width is ' .$width. ' and height is ' .$height. ' pixels';
I have some rules of my own, when to do one way or other.
Keeps me happy 🙂 😉 🙂
You should also notice this.
My response was to your first post!
Your original post has NOT any mixed variables, needing single/double.
It is perfectly alright using only double quotes around this text!
// original question posted code
echo "Sizes Possible With ". "$size" ."mm Head Box, and ".$drive." Drive";
// halojoy response
echo "Sizes Possible With $size mm Head Box, and $drive Drive";