What is the use of return mainly? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of return mainly?

I get shuffled with it use

17th Feb 2019, 5:38 PM
NKVS
NKVS - avatar
5 Answers
17th Feb 2019, 7:13 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 14
https://www.sololearn.com/learn/PHP/1836/
17th Feb 2019, 5:45 PM
Hubert Dudek
Hubert Dudek - avatar
+ 7
To leave the current block of execution i.e. to leave while running the loop
17th Feb 2019, 7:08 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
0
I had read that already
17th Feb 2019, 5:47 PM
NKVS
NKVS - avatar
- 1
I want something different
17th Feb 2019, 5:47 PM
NKVS
NKVS - avatar