Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 1
    \$\begingroup\$ <?php $line = fgets(STDIN); ?> \$\endgroup\$ Commented Apr 3, 2014 at 19:28
  • 2
    \$\begingroup\$ @User011001 Where would that fit in? \$\endgroup\$ Commented Apr 3, 2014 at 19:55
  • \$\begingroup\$ Just gave up trying to fit this in, I can't get it to work. Maybe you could post a full snippet of your suggestion? \$\endgroup\$ Commented Apr 3, 2014 at 20:11
  • 1
    \$\begingroup\$ You could save a char each by writing 1>0 instead of True and by removing the space between ] and for in ...[::-1] for g... \$\endgroup\$ Commented Apr 3, 2014 at 20:53
  • 1
    \$\begingroup\$ @Kaya You can simply use 1 instead of True as well. 1 == True, after all. \$\endgroup\$ Commented Apr 4, 2014 at 13:38