I have this array of string:
array(59) {
[0]=> string(25) "shadowcores.twifysoft.net"
[1]=> string(11) " "
}
Obviously there are 57 elements more. I need to know how can I remove this:
string(11) " "
There is no string to display but the string itself its not empty. How can I check for these types of values before adding them into my array?
Use the following:
$array = array_filter($yourArray, 'trim');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With