search

Home  >  Q&A  >  body text

Why does this output result is 14?

function add1($a,$b){
    echo 'a和b的值为'. $a+$b ;
}
add1(12,14);

移动用户-1371188移动用户-13711881478 days ago841

reply all(1)I'll reply

  • 稚出

    稚出2021-03-11 09:42:30

    Change to function add1($a,$b){ echo 'The values ​​of a and b are'. intval($a) intval($b);}add1(12,14);

    reply
    0
  • Cancelreply