I have been using Docker and Kubernetes for several years now but never really took any time to really read about it. There were a lot of gaps in my understanding of how Docker works and what really is possible with it. Just recently my employer started to offer a Udemy subscription, so I took the Hands on Docker course. Here are some of the important things I learned in this course.
I was using mcrypt to encrypt json_encoded data.
On the other side, mcrypt was able to decrypt data but json_decode was not working. It would throw JSON\_ERROR\_CTRL_CHAR error.
However, without mcrypt, json_decode worked flawlessly.
After some trial and error, I found that applying trim function after decrypting data would let me use json_decode without any issues.