Welcome Guest, Not a member yet? Register   Sign In
[Basic PHP] Treat function or method call as an array?
#4

[eluser]danmontgomery[/eluser]
You can use array_* functions on the result, which may not be much help if you're looking for a specific index, bout you could do something like

Code:
$value = array_pop($CI->config->item('returns_indexed_array'));

Or any (I haven't tested them all, but I'm thinking any of them should work) of the array functions... Depending on your specific needs you may be able to work something out that way.


Messages In This Thread
[Basic PHP] Treat function or method call as an array? - by El Forum - 01-08-2010, 09:23 AM
[Basic PHP] Treat function or method call as an array? - by El Forum - 01-08-2010, 09:30 AM
[Basic PHP] Treat function or method call as an array? - by El Forum - 01-08-2010, 09:38 AM
[Basic PHP] Treat function or method call as an array? - by El Forum - 01-08-2010, 09:45 AM
[Basic PHP] Treat function or method call as an array? - by El Forum - 01-09-2010, 03:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB