zachatk1 Posted May 22, 2011 Share Posted May 22, 2011 Is there a way to check if a value needs to be imploded and if it does, it implodes the variable? And vice versa with explode? How would this be done? Thanks! Link to comment https://forums.phpfreaks.com/topic/237081-check-if-something-needs-to-be-imploded-to-implode/ Share on other sites More sharing options...
mgoodman Posted May 22, 2011 Share Posted May 22, 2011 Look over these two functions, I think they will help you out. is_array is_string If the variable is an array (is_array), then you can implode it. If it is not an array (is_string) then you can explode it. Link to comment https://forums.phpfreaks.com/topic/237081-check-if-something-needs-to-be-imploded-to-implode/#findComment-1218566 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.