simpli Posted December 8, 2009 Share Posted December 8, 2009 Hi all, If I echo echo intval('684') and echo intval("684") they both output 684. I have the following array: $foo ( [node_id] => 684 ). If I echo intval($foo["node_id"])) i get 0. Anyone can tell me why? thanks and best regards, JR Quote Link to comment https://forums.phpfreaks.com/topic/184346-intval/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 8, 2009 Share Posted December 8, 2009 $foo = array('[node_id]' => 684); is not the same as $foo = array('node_id' => 684); You need to post your actual code. Quote Link to comment https://forums.phpfreaks.com/topic/184346-intval/#findComment-973212 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.