Re: Thinking out loud - a continuation...
| From: | Matijn Woudt | Date: | Mon, 02 Apr 2012 20:57:55 +0000 |
| Subject: | Re: Thinking out loud - a continuation... | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317429@lists.php.net to get a copy of this message | ||
On Mon, Apr 2, 2012 at 10:36 PM, Jay Blanchard
<jay.blanchard@sigmaphinothing.org> wrote:
> [snip]
>>> function getTiersJson( $company )
>>> {
>>> $tiers = getTiers( $company );
>>> $json = JSON_encode( $tiers );
>>> }
>>>
>>> $tiersJson = getTiersJson( 1 );
>>>
>>> ?>
>>>
>>> This will output JSON with the following structure:
>>>
> [/snip]
>
> OK, now I know I am being dense - but don't I have to add return $json; to getTiersJson()
> ?
Of course ;)