stringify() public method

Convert PHP expression/value to compressed exportable string
public stringify ( $arg, array $stack = NULL ) : string
$arg mixed
$stack array array
return string
Example #1
0
 /**
  * compute file cache name
  * @param $file
  * @return string
  */
 protected function getCacheHash($file)
 {
     if (is_null($this->cacheHash)) {
         $fs_class = explode('\\', get_class($this->fs));
         $this->cacheHash = $this->f3->hash($this->f3->stringify($file)) . '.' . strtolower(array_pop($fs_class));
     }
     return $this->cacheHash;
 }