Re: Thinking out loud - a continuation...
| From: | Jay Blanchard | Date: | Mon, 02 Apr 2012 20:36:43 +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-317428@lists.php.net to get a copy of this message | ||
[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() ?