How does PHP convert data types?
Just put a bracket before the variable and write the target data type in brackets. The types of conversions allowed in PHP are as follows: conversion function conversion type (boolean), (bool) forced conversion of other data types to Boolean $ a =1; $b= (Boolean type) $ a;; $ b =(bool)$ a; [hr]