2
I have a array which is built on the results of chekbox selected...
He returns with a var_dump
:
array(3) { [0]=> string(7) "BXT0022" [1]=> string(7) "BXT0010" [2]=> string(7) "BXT0024" }
I just want to chekar if there’s anything on array or if it is empty, but I’m not succeeding because if there is nothing selected it returns this:
string(0) ""
How can I do an if (has nothing on array) makes the implode... I tried with the count
of array but always gives 1 even with nothing chosen , issset
there’s something there too and it doesn’t work... I don’t know what else to use...
It’s kind of chekar the length of the string array returns?
Thanks is what I need ...thank you very much
– user7385
@user7385, mark this answer as accepted.
– Roger Barretto
You mean, "he returns
true
", right?– mgibsonbr
@mgibsonbr Ops, this
– bfavaretto