json结果中的javascript对象中的php变量

I'm trying to put a php variable within a js script that is in a result variable that will be processed with json but i don't get it to work. I know it has something to do with the "" and '' but i can't figure out what it is.

$result["html"] .= "<script type='text/javascript'>setTimeout(function () { window.location='.$config[\"BURL\"].'; }, 2500);</script>";

Edit: whoohoo i got the 15 points to upvote! Thanks u all!

You will have to concatenate strings using . and remove the escaping of the quotes for the index, like so:

$result["html"] .= "<script type='text/javascript'>setTimeout(function () { window.location='" . $config["BURL"] . "'; }, 2500);</script>";