PHP echo command best practice?

  • Thread starter Thread starter Tehemai
  • Start date Start date
T

Tehemai

Guest
Is having variable names outside of quotations in an echo in php considered bad practice or is this okay:

echo "hi ", $x;

as opposed to:

echo "hi $x";
 
Back
Top