0
Return PHP
Ребята, объясните кто-нибудь, для чего нужен оператор return? я не понимаю. Guys, could you explain me plz, what does operator "return" do? I can't understand.
1 Answer
- 1
It exits a function with a value. Some programmers use it to return calculated value or object. Some use it to represent state (e.g. 0 success or -1 fail)