Problems with function "eval" in combination with

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

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: No registered users and 2 guests