New year wishes 2014

Did you know that year is hidden inside new year wishes ?

Happy new year to you!


lets figure out

$i=false;foreach(str_split('Happy new year to you!')as$c){$i+=ord($c);}echo$i."\n";?>

Send me the output of this :-)


Some people are asking Logic behind this, here it is.

Short version

The sum of ASCII values of the string

Happy new year to you!

Long version

  1. Take a string

Happy new year to you!

  1. For each character of the string(including 3 space and one ! ), calculate the ASCII value (which is a number)

  2. Add the ASCII values

  3. The sum happens to be 2014

Hapy Coding.. :-)