search

Home  >  Q&A  >  body text

Do I also need to add // when assigning a value to a variable?

//Declare variable integer, English int//$int = 1000;$zhengshu = 1000;echo $zhengshu;

上善若水上善若水1695 days ago1044

reply all(1)I'll reply

  • Yang_Sir

    Yang_Sir2020-04-09 13:37:32

    No, if you don’t force the type, this will do:

    $int = 1000;$zhengshu = 1000; echo $zhengshu;

    reply
    0
  • Cancelreply