practical and  examples in php