sample codes for php