Welcome Guest, Not a member yet? Register   Sign In
CI 3 RC Session unset in associative array
#10

(02-02-2015, 10:07 AM)twpmarketing Wrote: Ok, thank you. For those who read this later, the doc change is as followed, quoted from the commit link:

Quote:Previously, this method used to accept an associative array of
+ ``'key' => 'dummy value'`` pairs for unsetting multiple keys. That
+ however makes no sense and you now have to pass *only* the keys, as
+ the elements of an array.
+
+ ::
+
+ // Old
+ $this->session->unset_userdata(array('item' => '', 'item2' => ''));
+
+ // New
+ $this->session->unset_userdata(array('item', 'item2'));

If I was a reader, this post would insult me. I can click a link, I don't need somebody copy-pasting content around for me.
Reply


Messages In This Thread
RE: CI 3 RC Session unset in associative array - by Narf - 02-02-2015, 10:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB