0

Return PHP

Ребята, объясните кто-нибудь, для чего нужен оператор return? я не понимаю. Guys, could you explain me plz, what does operator "return" do? I can't understand.

18th Dec 2017, 7:52 AM
BodyaBuilder
BodyaBuilder - avatar
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)
18th Dec 2017, 8:08 AM
H Chiang