Welcome Guest, Not a member yet? Register   Sign In
Correct way to use homemade functions
#2

[eluser]codex[/eluser]
Maybe I'm wrong, but what you seem to be doing in hello() is just setting a variable and not returning a value.

I think you should be doing this, although it's not entirely clear what you're after:

Code:
function hello() {
        $data['message'] = 'Hi there!';
return $data;
    }


Messages In This Thread
Correct way to use homemade functions - by El Forum - 08-14-2007, 01:27 PM
Correct way to use homemade functions - by El Forum - 08-14-2007, 01:34 PM
Correct way to use homemade functions - by El Forum - 08-14-2007, 01:36 PM
Correct way to use homemade functions - by El Forum - 08-14-2007, 01:37 PM
Correct way to use homemade functions - by El Forum - 08-14-2007, 01:42 PM
Correct way to use homemade functions - by El Forum - 08-14-2007, 01:43 PM
Correct way to use homemade functions - by El Forum - 08-14-2007, 01:45 PM
Correct way to use homemade functions - by El Forum - 08-14-2007, 02:17 PM
Correct way to use homemade functions - by El Forum - 08-14-2007, 08:58 PM
Correct way to use homemade functions - by El Forum - 08-15-2007, 01:08 PM
Correct way to use homemade functions - by El Forum - 08-15-2007, 01:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB