Jenssegers\ImageHash\Implementation::hash PHP Метод

hash() публичный Метод

Calculate the hash for the given resource.
public hash ( resource $resource ) : integer
$resource resource
Результат integer
    public function hash($resource);

Usage Example

Пример #1
0
 /**
  * Calculate a perceptual hash of an image string.
  *
  * @param  mixed $data Image data
  * @return string
  */
 public function hashFromString($data)
 {
     $resource = $this->createResource($data);
     $hash = $this->implementation->hash($resource);
     $this->destroyResource($resource);
     return $this->formatHash($hash);
 }
All Usage Examples Of Jenssegers\ImageHash\Implementation::hash
Implementation