Forum
Calc Builder Support
Calc Builder supportForums
Public write access is disabled. Please login
Re: How to get keys as array? 29.07.2013 09:39
Hello,
You should use array_keys function to get row´s keys as follows :
$keys=array_keys($YOUR_MATRIX_VAR);
You could get more info about this function at: http://www.php.net/manual/en/function.array-keys.php
To get info from option list you could use:
- $YOUR_OPTION_VAR : contains the values selected
- $YOUR_OPTION_VAR_name : contains the name of the values selected
By now, getting all values of an option list, selected or not, in code is not possible. We suggest you to use matrix or declare in code instead.
Hope this helps. Regards,
Moonsoft Team
www.moonsoft.es
How to get matrix's keys as array (as example row's keys)?
You should use array_keys function to get row´s keys as follows :
$keys=array_keys($YOUR_MATRIX_VAR);
You could get more info about this function at: http://www.php.net/manual/en/function.array-keys.php
Or could I get values from option list as array?
To get info from option list you could use:
- $YOUR_OPTION_VAR : contains the values selected
- $YOUR_OPTION_VAR_name : contains the name of the values selected
By now, getting all values of an option list, selected or not, in code is not possible. We suggest you to use matrix or declare in code instead.
Hope this helps. Regards,
Moonsoft Team
www.moonsoft.es
Re: How to get keys as array? 30.07.2013 09:36
Hello,
To get the column key you should use:
$column_keys=array_keys(array_shift($YOUR_MATRIX_VAR));
Note that at least one row must be set in matrix.
Regards,
Moonsoft Team
www.moonsoft.es
To get the column key you should use:
$column_keys=array_keys(array_shift($YOUR_MATRIX_VAR));
Note that at least one row must be set in matrix.
Regards,
Moonsoft Team
www.moonsoft.es