david212 Posted May 1, 2010 Share Posted May 1, 2010 I have some noob questions : 1. What does "return" do in a function? 2. Would (null ==0 ) be true or false? ( i think it's false) 3. Would (null ===0) be true or false? 4. Is it necessary to use always "else" statement within a condition? I'm just reading php ebooks and find this questions and got confused . Thank you for your response and time Link to comment https://forums.phpfreaks.com/topic/200371-noob-questions/ Share on other sites More sharing options...
Daniel0 Posted May 1, 2010 Share Posted May 1, 2010 1. It ends execution of a function and returns a value that may be assigned to a variable or used for other purposes. 2. It would be true. 3. It would be false. 4. No, only when you need it. Link to comment https://forums.phpfreaks.com/topic/200371-noob-questions/#findComment-1051526 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.