[Solved] Line breaks between variables in PHP


“\t” is not a viable option but @Magnus Eriksson gave good answer:

echo "\t".$var1."\t".$var2.PHP_EOL:

   apple   fruit
   tomato   fruit
   pineapple   fruit

echo ' '.str_pad($var1,20," ").$var2.PHP_EOL:

  apple               fruit
  tomato              fruit
  pineapple           fruit

solved Line breaks between variables in PHP