Proper Use of Eval() in PHP [closed]

Frurnania

New Member
I know \[code\]eval\[/code\] should be avoided in JavaScript for speed and security reasons. But in the case of PHP, rarely is security ever mentioned. More often, it's your program running slower than it should because of a haphazard use of \[code\]eval\[/code\].In what specific situations should you use \[code\]eval\[/code\] because there is no other way around it?For clarity:We're not talking about user-supplied data. So the question is focused on pure and fully-controlled server-side valid use of \[code\]eval\[/code\].
 
Back
Top