I have a problem like,array with 0 10 indexes and i removed 0th index now it's like 1 to 10 when i display this array there is an empty column in 0th position.I want to rearrange this array to 0 to 9. The purpose is the array construct my grid and 0th position is for edit ,if a user doesn't have the permission then i unset the 0th element. How do i rearrange my array to 0 to 9
Sample array structure is like
[fields] => Array
(
[1] => Array
(
[header] => Array
(
[fieldName] => OFFERID
[displayName] => History
[width] => 70
)
[visibility] => Array
(
[showOnStart] => 1
[editable] =>
)
[cell] => Array
(
[type] => raw
[params] => Array
(
[text] => <a href="javascript:void(0);" id="{{OFFERID}}" class="btnHistory">History</a>
)
)
[sort] => Array
(
[sortable] => 1
)
[validator] => Array
(
[name] =>
[params] =>
)
)
[2] => Array
(
[header] => Array
(
[fieldName] => OFFERID
[displayName] => Offer Id
[group] => 0
)
thanks Alex