Re: Thinking out loud - a continuation...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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() ?
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux