protected function doSerialize($val) {
		if(is_string($val) || is_numeric($val) || is_bool($val) || is_null($val))
			return $val;
		else
			return serialize($val);
	}
protected function doSerialize($val) {
		if(is_string($val) || is_numeric($val) || is_bool($val) || is_null($val))
			return $val;
		else
			return serialize($val);
	}
protected function doSerialize ( $ val ) { if ( is_string ( $ val ) || is_numeric ( $ val ) || is_bool ( $ val ) || is_null ( $ val ) ) return $ val ; else return serialize ( $ val ) ; }
Actually perform serialization for a single element.
@param  mixed $val
@return string
Actually perform serialization for a single element .