Assign variables and display results

前端 未结 4 428
日久生厌
日久生厌 2021-01-29 13:01
    

i get a T_ECHO unexpected error . what is the right way of accomplishing the above task?

4条回答
  •  自闭症患者
    2021-01-29 13:45

    I don't know what you are trying to do. echo is a language construct, so returns nothing, so its return value cannot be assigned.

    If you want to echo a value and assign it to another variable, it is best (most legible) to do it in two statements:

    
    

提交回复
热议问题