Recreating PB Variables in PHP?