Default parameter problem
西伯利亚狼
西伯利亚狼 2021-06-17 21:03:10
0
1
787

The ternary operator cannot filter 0

func(0, 10);

The above call, the expected result is 10, but it will get 610, which is the fault of the ternary operator

西伯利亚狼
西伯利亚狼

reply all (1)
Peter_Zhu

I didn’t see what you were asking, has it been solved?

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!