Welcome Guest, Not a member yet? Register   Sign In
CI syntax debugging
#2

[eluser]gRoberts[/eluser]
Code:
foreach($this->config->item('arModeSortType')[$this->config->item('sCurrentMode')] as $sModeSortType => $sDisplay) {

}

But it would be better to store these in a variable before using them in an foreach loop.


Messages In This Thread
CI syntax debugging - by El Forum - 03-25-2008, 07:38 AM
CI syntax debugging - by El Forum - 03-25-2008, 07:41 AM
CI syntax debugging - by El Forum - 03-25-2008, 07:42 AM
CI syntax debugging - by El Forum - 03-25-2008, 09:04 AM
CI syntax debugging - by El Forum - 03-25-2008, 09:21 AM
CI syntax debugging - by El Forum - 03-25-2008, 09:37 AM
CI syntax debugging - by El Forum - 03-25-2008, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB