I have this array
Array ( [0] => User Object ( [id] => [username] => [password] => $2y$10$JJkkoa89X0gNmaEtzeLsI.GkKXqWx8R18MoHwglZkXkDPo5PdlnZe [first_name] => [last_name] => ) ) 1
can i get password as string ?
I have this array
Array ( [0] => User Object ( [id] => [username] => [password] => $2y$10$JJkkoa89X0gNmaEtzeLsI.GkKXqWx8R18MoHwglZkXkDPo5PdlnZe [first_name] => [last_name] => ) ) 1
can i get password as string ?
The password is hashed, i.e., some algorithm has been used to encrypt the original string. There are two ways
You can use the casting operators
$password = (string) $arr[0]['password'];