Timeline for Insert typos into text
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 15, 2014 at 4:25 | history | edited | Aurel Bílý | CC BY-SA 3.0 |
-3
|
Feb 13, 2014 at 20:15 | comment | added | Ismael Miguel |
Where you have ($e?0:32) , replacing with 32*!!$e (notice the lack of parenthesis) save 2 bytes. If $e is ALWAYS boolean, you can do 32*!$e and you save 3 bytes. This will work cause php has arithmetic precedence. This means that multiplications and divisions are made before any addition and subtraction.
|
|
Feb 12, 2014 at 0:38 | history | edited | Aurel Bílý | CC BY-SA 3.0 |
-2 chars
|
Feb 11, 2014 at 9:24 | comment | added | Ismael Miguel |
Where you have (!($g=rand(0,($e=($c>-1&&$c<26)or$c>31&&$c<58)?2:1)) change for (!($g=rand(0,($e=($c>-1&&$c<26)or$c>31&&$c<58)+1))? and you will save 2 bytes.
|
|
Feb 11, 2014 at 3:18 | history | edited | Aurel Bílý | CC BY-SA 3.0 |
shaved off some chars, new explanation
|
Feb 10, 2014 at 4:52 | history | edited | Aurel Bílý | CC BY-SA 3.0 |
commented version
|
Feb 10, 2014 at 4:43 | history | answered | Aurel Bílý | CC BY-SA 3.0 |