Skip to content

Instantly share code, notes, and snippets.

@makasim
Created July 8, 2011 13:39
Show Gist options
  • Save makasim/1071844 to your computer and use it in GitHub Desktop.
Save makasim/1071844 to your computer and use it in GitHub Desktop.
list usage
<?php
/**
* Unserializes the user.
*
* @param string $serialized
*/
public function unserialize($serialized)
{
list(
$this->password,
$this->salt,
$this->usernameCanonical,
$this->username,
$this->expired,
$this->locked,
$this->credentialsExpired,
$this->enabled
) = unserialize($serialized);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment