gmp_and operation ???

Priti Solanki pritiatwork at
Fri Feb 5 23:10:52 CET 2010


Consider following example>



echo '<br/>Result: '. gmp_strval($andresult);

the output is "9"

I need the binary output of above $andresult .I think this is gmp val but if
i do strval($andresult,2) it show be binary of 9 not the and operation
result ... if not wrong the and output ashould be '0000'

i have to perform bitwise and for 288 bits but gmp is not returning me the
expected output in 4 bits !!!

Am i wrong somewhere?


More information about the gmp-discuss mailing list