No, at least not in general (though there may be if you specify some restrictions).
Assuming n-bit types, there are 2n possible values. But there are 22n possible pairs of values. Obviously there’s not a unique mapping from a pair to a value.
Of course, if you’re prepared to have an output type that’s wider than your input type, then this is trivial.
Related Contents:
- How do I get PHP errors to display?
- How to convert array to SimpleXML
- How to properly set up a PDO connection
- Accessing @attribute from SimpleXML
- PDO get the last ID inserted
- Highlight row when the checkbox is true
- Return single column from a multi-dimensional array
- json_encode is returning NULL?
- What’s the difference between :: (double colon) and -> (arrow) in PHP?
- Unzip a file with php
- How do you Encrypt and Decrypt a PHP String?
- Single result from database using mysqli
- How to write a PHP ternary operator [duplicate]
- What is a class in PHP?
- Where are $_SESSION variables stored?
- PDO mysql: How to know if insert was successful
- When (if ever) is eval NOT evil?
- Converting words to numbers in PHP
- How to convert mysqli result to JSON? [duplicate]
- Amazon S3 – How to fix ‘The request signature we calculated does not match the signature’ error?
- Laravel update model with unique validation rule for attribute
- Find out how PHP is running on server (CGI OR fastCGI OR mod_php)
- Using SimpleXML to create an XML object from scratch
- Facebook only returning name and id of user
- Call to a member function on a non-object
- Coalesce function for PHP?
- Yosemite / El Capitan php-gd + mcrypt installation
- Xampp Access Forbidden php
- Include constant in string without concatenating
- Chaining Static Methods in PHP?
- mcrypt_encrypt to openssl_encrypt, and OPENSSL_ZERO_PADDING problems
- Warning: session_start() failed: No such file or directory
- When using Gmail for SMTP, can you set a different “from” address?
- WooCommerce: Add product to cart with price override?
- Authenticating in PHP using LDAP through Active Directory
- Laravel error: Missing required parameters for route
- How to send a status code in PHP, without maintaining an array of status names?
- How to loop through PHP object with dynamic keys [duplicate]
- Use json_decode() to create array insead of an object
- Laravel catch TokenMismatchException
- Static variables in PHP
- Remove index.php in codeigniter 2.1.0
- How can I read GZIP-ed response from Stackoverflow API in PHP?
- How to determine the memory footprint (size) of a variable?
- Executing a PHP script with a CRON Job [closed]
- Detect mobile browser [duplicate]
- How can I view/open a word document in my browser using with PHP or HTML
- How to pass an array using PHP & Ajax to Javascript?
- Composer install error – requires ext_curl when it’s actually enabled
- PHP date add 5 year to current date