code: public static function exportPhpValue($value)
      {
          switch (gettype($value)) {
              case 'boolean':
              case 'integer':
              case 'double':
              case 'string':
              case 'NULL':
                  return var_export($value, true);
              default:
                  return 'unserialize('.var_export(serialize($value), true).')';
          }
      }
docs: @param mixed $value
  
  @return string