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 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. Link to comment https://forums.phpfreaks.com/topic/184346-intval/#findComment-973212 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.