Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 100197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:32:00+00:00 2026-05-11T00:32:00+00:00

Hi im learning LISP and well, all day i program php for a living,

  • 0

Hi im learning LISP and well, all day i program php for a living, so i was messing around with php.net and found the eval function… so i started playing around!

I would love to know more about how to use eval to do crazy stuff, i know you can make functions with this and everything… but i wanted to ask why the next code wont work:

$var = 'echo \'FOZZ\';'; for($i = 0; $i < 100; $i++)     $var  = 'eval(\''.$var.'\');'; print $var;    eval($var); 

Also what other stuff is interesting with eval!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:32:01+00:00Added an answer on May 11, 2026 at 12:32 am

    Your statement comes out to ‘eval(‘eval(‘echo’FOZZ’;’);’)’. Your double quotes are interfering with each other and causing the error.

    You might want to try changin the first line to $var = ‘echo \’FOZZ\’;’;

    Note: Please be careful using eval.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started learning Lisp recently and wanted to write a program which uses gtk
I've just started learning Lisp and I can't figure out how to compile and
I just started learning Common Lisp a few days ago, and I'm trying to
Learning WPF nowadays. Found something new today with .Net dependency properties. What they bring
I started learning LISP and I heard that there is some kind of a
I recently started reading Paul Grahams 'On Lisp', and learning learning clojure along with
I started learning Common Lisp recently, and (just for fun) decided to rename the
I was working with a Lisp dialect but also learning some Haskell as well.
I'm learning Lisp and have written the following function to collect a list of
I am learning LISP right now and I haven't found anything on how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.