Re: [PHP4BETA] Converting data types
| From: | brad at youreshop dot com | Date: | Tue, 25 Apr 2000 18:37:33 +0000 |
| Subject: | Re: [PHP4BETA] Converting data types | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-14049@lists.php.net to get a copy of this message | ||
Hello,
With the help of other, we figured it out.
PHP was returning the decimal value (8566) of the hexidecimal value (2176)
So I just used base_convert() to convert 8566 to base 16 from base 10 and
everything worked fine!
Thanks for all your help.
Brad Atkins
> | I have a variable which is of type "unsigned long" (note_id) which I'm
> | trying to return back to the user in an array.
> |
> | I used add_index_long(return_value,i,note_id); but I get a value of 8566
> | when I should be getting 2176.
> |
> | Is there a function that I can use to convert the note_id to "long" which
> | add_index_long() expects?
>