View Single Post
  #10  
Old 05-21-2010, 05:55 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by coreys View Post
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).
That was what I originally had, but it wasn't a true replication so I had go to the way I did with the quote variable. Ideally you should be able to paste your output, apply and have it still working.
__________________
Quote:
Reply With Quote