Jump to content

[SOLVED] Cleaning up an array.


Pjack125

Recommended Posts

I want to put information from check boxes into an array but the issue is not all of the check boxes are require to have information in there so i end up having something like so for the array

 

$Department = array("value1","","value3","","","value6"); 

 

what I want to do is manipulate that array to where i have

 

$Department = array("value1","value3","value6"); 

 

Is there any way to achieve such result I would even be willing to settle for a way to load only those values into a new array called $Selected or something.

 

Link to comment
https://forums.phpfreaks.com/topic/135146-solved-cleaning-up-an-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.