search

Home  >  Q&A  >  body text

To implement the addition of PHP, call the addition function of PHP, first assign the values ​​​​1 and 2 to id and id1, and then call the addition function. The parameters in parentheses

<?php

$id = '1'; Define a parameter

$id2 = '2';Define a parameter

echo bcadd($id,$id2,3);Call the php addition function and output, The third parameter is the number of digits to be retained after the decimal point

和2124 days ago962

reply all(0)I'll reply

No reply
  • Cancelreply