What's the difference? eval() or just call the function directly?

Posted by question_about_the_problem on Stack Overflow See other posts from Stack Overflow or by question_about_the_problem
Published on 2010-04-05T17:47:53Z Indexed on 2010/04/05 18:03 UTC
Read the original article Hit count: 157

Filed under:
|

I'm not php expert and I don't know what's the difference(1) between a and b.

a.)eval('return "'.base64_decode("encoded_text").'";')

b.)base64_decode("encoded_text")

-I THINK, a is php code and b is just string. And my other question is:

What is the difference(2) between c and d?

c.)eval('return "'.base64_decode("encoded_text").'";')

d.)eval(base64_decode("encoded_text"))

So I have 2 questions. Who can answer/help ?

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about eval