Is there a way to perform binary math on binary strings in PHP? -


i'm working numbers far large php handle (ipv6 addresses in binary), work around i've formulated function convert addresses to/from binary strings (literally string of 1s , 0s). however, when comes subnet calculations easiest way know how use binary math. have no idea how i'd use binary math in instance since i'm technically dealing strings, not binary numbers. there way can binary math string representation of binary number?

when working large binary numbers use gmp extension. accepts strings of arbitrary length parameters.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -