My own use php lib functions