** This thread discusses the article: PHP for RPG Programmers: Variables, Arrays, and Functions **
Hi Dave,
I believe you meant:

echo($$State2);

Regards,
Chris Ringer