Interaction between flash & php?

hey girls and boys,
is it possible to let flash act depending on php-set vars?

e.g. if on my page in php the var $var = “whatever”;

then flash acts like this:

if (var = “whatever”) {
gotoAndPlay(5);
}

or anything similar to that !?

that would be great =)

thank you