public static function encodePhpSerialize( array $data ) {
		try {
			return serialize( $data );
		} catch ( \Exception $ex ) {
			self::$logger->error( 'PHP serialization failed: ' . $ex->getMessage() );
			return null;
		}
	}
public static function encodePhpSerialize( array $data ) {
		try {
			return serialize( $data );
		} catch ( \Exception $ex ) {
			self::$logger->error( 'PHP serialization failed: ' . $ex->getMessage() );
			return null;
		}
	}
public static function encodePhpSerialize ( array $ data ) { try { return serialize ( $ data ) ; } catch ( \ Exception $ ex ) { self :: $ logger -> error ( 'PHP serialization failed: ' . $ ex -> getMessage ( ) ) ; return null ; } }
Encode a session array to a string in 'php_serialize' format
@note Generally you'll use self::encode() instead of this method.
@param array $data Session data
@return string|null Encoded string, or null on failure
Encode a session array to a string in php_serialize format