14
Aug

Google Charts API Simple and Extended Encoders in PHP

Trackbacks

Trackback specific URI for this entry
    No Trackbacks

Comments

Display comments as (Linear | Threaded)

    $a = array(39, 43, 40, 41); $max = 61; $m = googleSimpleEncode($a); echo $m; returns ’3956’.Should return ’nrop’ Help me please. Thanks.
    #1 Nick on 2009-08-22 23:20 (Reply)
    While you set a value for $max, you didn't actually pass it in to the function, so it's scaling to a max value of 41, not 61. Do this instead:
    $m = googleSimpleEncode($a, $max);
    #1.1 Marcus Bointon on 2009-08-22 23:45 (Reply)
    I have made as you have told. All the same function returns 3946, instead of ’nrop’
    #2 Nick on 2009-08-23 07:11 (Reply)
    You must have made a mistake. This gives me 'nrop':
    $a = array(39, 43, 40, 41); $max = 61; $m = googleSimpleEncode($a,$max); echo $m;
    #2.1 Marcus Bointon on 2009-08-23 08:32 (Reply)
    Thanks, really work!
    #3 Nick on 2009-08-23 19:00 (Reply)

Add Comment


You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
Submitted comments will be subject to moderation before being displayed.
 
























Calendar

Back March '10
Mon Tue Wed Thu Fri Sat Sun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Quicksearch

Blog Administration

Show tagged entries

Powered by

Serendipity PHP Weblog