[eluser]bunal[/eluser]
Hi,
When there is a method that can either return data or false, for example get_user_detail()
What do you prefer?
Way 1:
get_user_detail() return false if no user found
get_user_detail() return array/object if user found
Way 2:
get_user_detail() return false if no user found
get_user_detail() return true if user found
get_user_detail() store user data in $return_get_user_detail variable
Then developers can use $return_get_user_detail variable to get the data