PHP: __sleep() Magic Method

The __sleep() method returns an array of names of the variables of an object, which should be kept when the object is serialized. NOTE The __sleep() method returns an array of strings. The strings in the array are the name of the variables of the class. WARNING If the returned array from the __sleep() method … Read more

Kubernetes(K8s)

Kubernetes

Kubernetes is a Container Orchestration Engine(COE). Tools like Docker are great for containerizing an application. But these tools are mostly limited to containerizing, building images, and providing isolated runtime environments. Container orchestration allows us to run container workloads at scale in a production-like environment.

PHP: Cast to Float

PHP

Let’s see how we can cast/convert one data type to another data type in PHP. We can as one data type to another using one of the following- Casting operator and Functions.

PHP: Cast to Integer

PHP

Let’s see how we can cast/convert one data type to another data type in PHP. We can as one data type to another using one of the following- Casting operator and Functions.