Problem Loading php variables into Flash?

Hello, I’m having an issue loading variables from a php file into flash with actionscript 3.0
I am able to reference the php file and trace all the data, but not certain variables.

This is my php code:

<?php
$username = "joe";
$username2 = "joey";

echo "username=" .$username;

?>

and this is the actionscript I’m using:

var request:URLRequest = new URLRequest("php/copyright.php");
var loader:URLLoader = new URLLoader();
loader.load(request);

loader.addEventListener(Event.COMPLETE, completeHandler)
function completeHandler(event:Event):void{
	var variables:URLVariables = new URLVariables(loader.data);
	trace(variables.username);
	}

In the output panel I get a message saying the username is undefined?

Any help would be great

Thanks,
Chris Fleming