Problems with function "eval" in combination with

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK

Post by pootergeist » Fri May 09, 2003 11:55 pm

I'd guess it would be the if that is fouling - maybe assign a variable to the !empty and if that

eval("\$test_var = (!empty(\$cs_song_".$side.")) ? true : false;");
if($test_var == true)
// do stuff

am just guessing though

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests