http://ideone.com/v2CrAm

 

I has posted to ideone to show what is wrong.