PHP

Displaying PHP Variables in Quotes, Arrays

Trying to output a variable without using dot (period) syntax. It's much easier to output your variables within quotes. This code works:

while ($element = each( $query))
{ echo "my text" . $element[value][query_column] ; }

but I have a whole paragraph to format like this, so it's really a PITA to write . myvar . "sometext" . myVar, etc. and get everything formatted correctly. Below are some things I tried before finding the solution below.

this code...

while ($element = each( $query))
{ echo "my text $element['value']['query_column']" ; }

throws this error (because of the single quotes):
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or ...