Sample code in php