Skip to main content

Timeline for answer to N(e(s(t))) a string by Jörg Hülsermann

Current License: CC BY-SA 3.0

Post Revisions

6 events
when toggle format what by license comment
Oct 19, 2016 at 14:08 comment added Jörg Hülsermann @Titus nice alternative Thank You
Oct 19, 2016 at 14:08 history edited Jörg Hülsermann CC BY-SA 3.0
added 100 characters in body
Oct 19, 2016 at 13:15 comment added Titus 63 bytes: <?=str_pad(join("(",$s=str_split($argv[1])),count($s)*3-2,")");- wordwrap would beat the split/join combination, but unfortunately fails if the input contains whitespace.
Oct 18, 2016 at 20:03 history edited Jörg Hülsermann CC BY-SA 3.0
deleted 3 characters in body
Oct 18, 2016 at 20:00 comment added Alex Howansky You can save two bytes by using <?= instead of echo and another one if you set $s to the result of the str_split call instead of $argv[1], and then use count($s) instead of strlen($s)
Oct 18, 2016 at 19:17 history answered Jörg Hülsermann CC BY-SA 3.0