String interpolation and extraction in PHP