some usful code of php