how can i get value from inside of function?

前端 未结 4 1226
感情败类
感情败类 2021-01-23 02:35

Is it possible to get those values inside of function and use those outside of function here is my code:



        
4条回答
  •  一向
    一向 (楼主)
    2021-01-23 02:59

    If you put return $total at the very end of the function (right before the last curly brace), you should be able to use the result.

提交回复
热议问题