original_string: public static function toSerialize($resource) {
  		if (!self::isArray($resource)) {
  			$resource = self::toArray($resource);
  		}
  
  		return serialize($resource);
  	}
code: public static function toSerialize($resource) {
  		if (!self::isArray($resource)) {
  			$resource = self::toArray($resource);
  		}
  
  		return serialize($resource);
  	}
code_tokens: public static function toSerialize ( $ resource ) { if ( ! self :: isArray ( $ resource ) ) { $ resource = self :: toArray ( $ resource ) ; } return serialize ( $ resource ) ; }
docstring: Transforms a resource into a serialized form.
  
  @access public
  @param mixed $resource
  @return string
  @static
docstring_tokens: Transforms a resource into a serialized form .