lespoils Posted July 8, 2007 Share Posted July 8, 2007 Hello, i've taken a table from a webpage. this table has 3 rows and a n number of column. My question is simple i guess how do i know how many elements are in the second array part : $aArray[2][here!]. i have read through the help and i've a lot of trials but no luck. Or if there is a way to change my 2d array into 2 one dimension array also that would do. Thanks Lespoils Link to comment Share on other sites More sharing options...
Valuater Posted July 8, 2007 Share Posted July 8, 2007 Ubound ($2dArray, 2)UBound Returns the size of array dimensions. UBound ( Array [, Dimension] ) Parameters Array The array variable which is being queried. Dimension [optional] Which dimension of a multi-dimensioned array to report the size of. Default is 1, which is the first dimension. If this parameter is 0, the number of subscripts in the array is returned8) Link to comment Share on other sites More sharing options...
lespoils Posted July 8, 2007 Author Share Posted July 8, 2007 Thank you, all works great now, i never would have looked into the UBound Function Thanks again Lespoils Link to comment Share on other sites More sharing options...
Valuater Posted July 8, 2007 Share Posted July 8, 2007 Welcome 8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now