physaux Posted October 16, 2009 Share Posted October 16, 2009 My code: $rawstring= "Something9123toasdkln897"; $explosionarray= array(); $explosionarray=explode("to", $rawstring);//THISLINE. And i get this: Notice: Array to string conversion Here is an example from http://php.net/manual/en/function.explode.php $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); echo $pieces[0]; // piece1 i could swear that i am doing the exact same thing, but i get a "Notice"!! Any way to get rid of it??? Link to comment https://forums.phpfreaks.com/topic/177973-solved-notice-array-to-string-conversion/ Share on other sites More sharing options...
cags Posted October 16, 2009 Share Posted October 16, 2009 I'm honestly not sure why your getting the notice. You can remove this line... $explosionarray= array(); as it's not needed, but I can't see it stopping the notice. Link to comment https://forums.phpfreaks.com/topic/177973-solved-notice-array-to-string-conversion/#findComment-938378 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.