Playing with basic functions in PHP