Converting data types

From: Date: Tue, 25 Apr 2000 00:22:39 +0000
Subject: Converting data types
Groups: php.version4 
Request: Send a blank email to php-version4+get-14031@lists.php.net to get a copy of this message
Hello, 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? Unfortunatly the function which I'm receiving note_id from make the type unsigned long, and that I can't change. Any suggestions would be greatly appreciated. Thanks, Brad Atkins

« previous php.version4 (#14031) next »