Ignore empty rows
Hi.
PHP Code:
|
Re: Ignore empty rows
Does this array hold strings? If not, what kind of data is it?
If strings: PHP Code:
|
Re: Ignore empty rows
No, not that!
I want to check real array (not empty rows) size, not fill it. |
Re: Ignore empty rows
strlen( szString[] ) ?
|
Re: Ignore empty rows
more faster do MyArray[i][0] == '\0' ( '^0' )
|
Re: Ignore empty rows
...which is the same as ( ! MyArray[i][0] ).
Sn!ff3r explain more. |
Re: Ignore empty rows
Unfortunately, there is no sizeof-esque operator that will return only array elements that contain data -- you will need to create it yourself.
If you are working with an array of strings then the above will be the simplest method. If the array holds integers (or w\e data) then you will have to determine the best way -- or give us more info on what kind of data you're working with and we can help. |
| All times are GMT -4. The time now is 18:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.