• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.