PHP: __sleep() Magic Method

Summary Method Name __sleep() Type Magic Method Access Modifier public Parameters None Return Type array Purpose/Usage Returns an array of the property names of the classwhich should be included when an object of that class is serialized When Invoked Automatically invoked by the serialize() method. Limitations Can not serialize resource. Signature public function __sleep(): array … 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.