Quote:
Originally Posted by fowlplay4
PHP Code:
function onCreated() { temp.q = '"'; temp.s = "function onCreated() { temp.q = '%s'; temp.s = %s%s%s; temp.s = format(temp.s, temp.q, temp.q, temp.s, temp.q); echo(temp.s); }"; temp.s = format(temp.s, temp.q, temp.q, temp.s, temp.q); echo(temp.s); }
|
Shortened
PHP Code:
function onCreated(){temp.s="function onCreated(){temp.s=\"%s\";temp.s=format(temp.s,temp.s);echo(temp.s);}";temp.s=format(temp.s,temp.s);echo(temp.s);}
(It may not be -exactly- the same, but I think the lack of escaped quotes in the output is acceptable)
I propose the next exercise be a function generate prime numbers (with an arbitrary upper limit).