Skip to main content
added 6 characters in body
Source Link
Business Cat
  • 9.2k
  • 1
  • 17
  • 37

PHP, 2525 23 bytes

Saved 2 bytes thanks to manatwork.

 <?=join(' '_,range(1,10));

Creates an array of [1 .. 10] and echoes the values separated by spaces_s.

PHP, 25 bytes

 <?=join(' ',range(1,10));

Creates an array of [1 .. 10] and echoes the values separated by spaces.

PHP, 25 23 bytes

Saved 2 bytes thanks to manatwork.

 <?=join(_,range(1,10));

Creates an array of [1 .. 10] and echoes the values separated by _s.

Source Link
Business Cat
  • 9.2k
  • 1
  • 17
  • 37

PHP, 25 bytes

 <?=join(' ',range(1,10));

Creates an array of [1 .. 10] and echoes the values separated by spaces.