updated p26 php solution to use ints