the php function useful