PHP variables are case sensitive, $p is not the same as $P.