Home  >  Q&A  >  body text

What is the difference between functions and variables?

What is the difference between functions and variables? Why appear together? Functions and variables, all of them are faint.

武汉蜗牛 - Jack Li武汉蜗牛 - Jack Li1891 days ago2433

reply all(8)I'll reply

  • 抬头仰望丶放肆的微笑

    抬头仰望丶放肆的微笑2019-09-21 07:02:35

    Learn c first

    reply
    0
  • 2019-09-09 11:39:02

    In php, all variables start with the $ symbol.

    function function name (){

    Function body; //The function body can be any executable code

    reply
    1
  • The function name can be freely defined by yourself

    · 2019-09-09 11:40:59
  • k

    k2019-09-08 17:15:54

    ? Are you confused?

    reply
    0
  • 武汉蜗牛 - Jack Li

    2. The function name can only be a combination of letters, numbers, and underscores, and cannot contain spaces. Numbers cannot be placed at the beginning of the variable name. For those who need to learn, this paragraph either does not understand or does not understand well, at least it is ambiguous...

    武汉蜗牛 - Jack Li · 2019-09-08 17:39:13
  • 武汉蜗牛 - Jack Li

    武汉蜗牛 - Jack Li2019-09-08 16:29:07

    I understand, but there is a passage in the article that confused me and I feel a bit confused.

    reply
    0
  • ***的烦恼

    ***的烦恼2019-09-08 16:27:46

    For example, the mathematical equation is x y=10, x is the variable, and the equation is the function.

    reply
    0
  • In PHP, all variables start with the $ symbol. function is used to define functions. The function body can be any executable code.

    · 2019-09-09 11:28:21
  • Cancelreply