Concat lines with spaces for php command