gmp_and operation

$m_string=‘0010’;
$c_string=‘0011’;

echo '<br> get resource type: '.get_resource_type($andresult);
echo '<br/> m string: '.gmp_strval($m_string);
echo '<br/> c string: '.gmp_strval($c_string);
echo '<br/> and string: '.gmp_strval($andresult,2);
echo '<br/>Result: '. base_convert($andresult,8,2);

output

get resource type: GMP integer
m string: 8
c string: 9
and string: 1000
Result: 100

!!!

The expected output is - 0010 and it is showing me 100 or 1000… Can someone help me in to this…!!!

missed to write the most imp line

$m_string=‘0010’;
$c_string=‘0011’;
$and_result=gmp_and($m_string,$c_string);

Resolved by me.